WP 2.6.2 posts revisions & Twitter Updater

October 5, 2008 by jerome

* Tlktlk is using the Twitter Updater plugins. It’s quite a nice plugin, really usefull to do automated posting to a twitter account.
But for a reason I didn’t quite grok, the twitter account was updated even when editing (save post) and/or (maybe) trough the autosave function of the new 2.6. On a few other blogs I decided to desactivate it since it was creating twits based on revision not accessible to general plugin and resulting in a 404.

This afternoon I had a look in the WP Codex page for Actions’ Hook and I tried to replace the hook from the plugin (line 108: twitter_updater.php) and posted a new event on the blog; so far it seems it worked like a charm:


add_action ( 'publish_post', 'vc_twit');
//add_action ( 'save_post', 'vc_twit');


2 Comments »

  1. looking forward for more information about this. thanks for sharing. Eugene

    Comment by Eugene — October 21, 2008 @ 4:41 am

  2. Apparently it doesn’t work when publishing trough XMLRPC – there must be a better hook to use in case XMLRPC access is critical for a project.

    any thought?

    Comment by j — November 9, 2008 @ 1:17 pm

RSS feed for comments on this post. TrackBack URL

Leave a comment