WordPress.org

Plugin Directory

Changeset 1723225


Ignore:
Timestamp:
09/01/17 13:35:10 (3 months ago)
Author:
bastho
Message:

1.0.3

  • Fix infinite loop in some cases
Location:
eelv-share-post/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • eelv-share-post/trunk/readme.txt

    r1722519 r1723225  
    4040 
    4141== Changelog == 
     42 
     43= 1.0.3 = 
     44 
     45* Fix infinite loop in some cases 
    4246 
    4347= 1.0.2 = 
  • eelv-share-post/trunk/share.php

    r1722519 r1723225  
    44  Plugin URI: http://ecolosites.eelv.fr/eelv-share-post/ 
    55  Description: Share a post link from a blog to another blog on the same WP multisite network and include the post content ! 
    6   Version: 1.0.2 
     6  Version: 1.0.3 
    77  Author: bastho, n4thaniel // EELV 
    88  Author URI: http://ecolosites.eelv.fr/ 
     
    539539        $shared_on = get_post_meta($post_id, 'share_on_blog', true); 
    540540        if (isset($_POST['share_on_blog']) || !empty($shared_on)) { 
    541             remove_action('save_post', 'eelv_share_save_postdata'); 
     541            remove_action('save_post', array($this, 'save_post')); 
    542542 
    543543            $share_on = $_REQUEST['share_on_blog']; 
     
    582582                } 
    583583            } 
    584             add_action('save_post', 'eelv_share_save_postdata'); 
     584            add_action('save_post', array($this, 'save_post')); 
    585585            update_post_meta($post_id, 'share_on_blog', $share_tmp, $shared_on); 
    586586        } 
Note: See TracChangeset for help on using the changeset viewer.