WordPress.org

Plugin Directory


Ignore:
Timestamp:
12/21/12 20:53:53 (5 years ago)
Author:
alexkingorg
Message:

version 2.7

File:
1 edited

Legend:

Unmodified
Added
Removed
  • social/trunk/lib/social/controller/settings.php

    r617518 r643119  
    3030            } 
    3131 
     32            if (isset($_POST['social_aggregate_comments'])) { 
     33                Social::option('aggregate_comments', $_POST['social_aggregate_comments']); 
     34            } 
     35            else { 
     36                delete_option('social_aggregate_comments'); 
     37            } 
     38 
    3239            // Store the default accounts 
    3340            $accounts = array(); 
     
    5461 
    5562            // System CRON 
    56             if ($this->request->post('social_fetch_comments') !== null) { 
    57                 Social::option('fetch_comments', $this->request->post('social_fetch_comments')); 
     63            if ($this->request->post('social_cron') !== null) { 
     64                Social::option('cron', $this->request->post('social_cron')); 
    5865 
    5966                // Unschedule the CRONs 
    60                 if ($this->request->post('social_fetch_comments') != '1' and ($timestamp = wp_next_scheduled('social_cron_15_init')) !== false) { 
     67                if ($this->request->post('social_cron') != '1' and ($timestamp = wp_next_scheduled('social_cron_15_init')) !== false) { 
    6168                    wp_unschedule_event($timestamp, 'social_cron_15_init'); 
    6269                } 
Note: See TracChangeset for help on using the changeset viewer.