WordPress.org

Plugin Directory

Changeset 556133


Ignore:
Timestamp:
06/11/12 13:56:18 (23 months ago)
Author:
jorbin
Message:

fix over pinging and switching themes bug

File:
1 edited

Legend:

Unmodified
Added
Removed
  • addthis/trunk/includes/addthis_addjs.php

    r554932 r556133  
    4545 
    4646        // If the footer option isn't set, check for it 
    47         if (! isset($this->options['wpfooter']) && current_user_can('manage_options')) 
     47        if (! isset($this->_options['wpfooter']) && current_user_can('manage_options')) 
    4848        { 
    4949            add_action('admin_init',array($this, 'update_wpfooter')); 
     
    6666 
    6767        do_action('addthis_addjs_created'); 
     68    } 
     69 
     70    function switch_theme(){ 
     71        $footer = $this->check_for_footer(); 
     72        $options = $this->_options; 
     73        $options['wpfooter'] = $footer; 
     74        update_option( 'addthis_settings', $options);  
     75        $this->_options = $options; 
    6876    } 
    6977 
Note: See TracChangeset for help on using the changeset viewer.