Plugin Directory

Changeset 809749


Ignore:
Timestamp:
11/24/2013 07:05:04 PM (12 years ago)
Author:
sebstein
Message:

Implmented new way to keep track of previously posted activities to prevent that the same activities are posted multiple times. If this problem happened to you, you might want to use the Bulk Delete plugin (http://wordpress.org/plugins/bulk-delete/) to delete wrongly imported posts.

Location:
g-crossposting/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • g-crossposting/trunk/g-crossposting.php

    r807770 r809749  
    44    Plugin URI: http://wordpress.org/extend/plugins/g-crossposting/
    55    Description: Imports your public Google+ activities in your Wordpress blog.
    6     Version: 1.2.0
     6    Version: 1.3.0
    77    Author: Sebastian Stein
    88    Author URI: http://sebstein.hpfsc.de/
     
    273273            update_option('g_crossposting_last_activity_id' , $latest_activity_id);
    274274        }
     275
     276        // no activity ID or one of being null must be wrong
     277        if (! isset($activity->id) || $activity->id == null) {
     278            continue;
     279        }
     280
     281        // always keep track of all old activities to prevent reposting
     282        if (get_option('g_crossposting_'.$activity->id) != false) {
     283            continue;
     284        }
     285        update_option('g_crossposting_'.$activity->id, $activity->id);
    275286
    276287        // currently, we only post posts and not shares :-)
  • g-crossposting/trunk/readme.txt

    r807770 r809749  
    55Requires at least: 3.0.0
    66Tested up to: 3.7.1
    7 Stable tag: 1.2.0
     7Stable tag: 1.3.0
    88
    99Imports your public Google+ activities in your Wordpress blog.
     
    103103== Changelog ==
    104104
     105= 1.3.0 =
     106
     107* Implmented new way to keep track of previously posted activities to prevent
     108  that the same activities are posted multiple times. If this problem happened
     109  to you, you might want to use the Bulk Delete plugin
     110  (http://wordpress.org/plugins/bulk-delete/) to delete wrongly imported posts.
     111
    105112= 1.2.0 =
    106113
Note: See TracChangeset for help on using the changeset viewer.