james david low

live / work / play / worship

Podpress and WordPress 2.6 fix with revisions

Haha, two ‘work’ posts in a row!

As some of you may know, wordpress 2.6 broke podpress, the great podcasting plugin for wordpress. There were several ‘fixes’ that people found after, but basically all of them involved disabling revisions in the new version of wordpress. I then discovered this forum topic that showed how wordpress called the ‘save_post’ hook in the new revisioning system. The solution I came up with allows you to keep the revisioning system turned on, but still allow podpress to work.

Instructions (Podpress 8.8)
1) Download this file.
2) Rename to podpress_admin_class.php and copy it to your /wp-content/plugins/podpress directory, replacing the existing file.
3) Create a post and check it works

Instructions (Other versions)
The above file might work with other versions of podpress, but it might not. It would be better to edit your own podpress_admin_class.php file to ensure things work.
1) Edit /wp-content/plugins/podpress/podpress_admin_class.php
2) Replace the line function post_edit($post_id) with the following:

function post_edit($post_id) {
if(wp_is_post_revision($post_id) || wp_is_post_autosave($post_id)) {
return $post_id;
} else {

3) Scroll down to just above the function edit_category_form($input) {
4) Insert another } above it to close off the condition statement.

Things that should be noted:

  • This worked for me, and its given here that it might work for you, but I’m not responsible for any damaged caused to your website or computer through the user of this plugin.
  • While the podpress information is saved for each revision, if you restore revisions, it currently won’t restore the podpress information from that revision. That requires using the wp_restore_post_revision hook, which I haven’t got round to doing yet.
  • I use wordpress 2.6 on all of the blogs I maintain now. I love it, I love the new file uploads that were introduced in 2.5, and the post revisions from 2.6. I use wordpress on some intranet pages along with allow categries and private files to control access to sensitive information. The new revisions work great because in a world of non-techsavy users, if we need to go back and fix something that someone broke we can, or for writing online documentation, it means you get a complete version history.

    If you found any of the software useful, please consider supporting its further developement by donating.
    10:52am / Aug 18th / 08
    « MySQL BIT in PHP Limegreen Released »


      haha one day you'll master it !

      12:00am / Aug 18th / 08 James Low (via Facebook)

      yea, it is cool. have you got the hello world working?

      i seriously want to do a programmers summer camp, complete with CS, WC3 and enough pizza to kill us !!!!

      12:00am / Aug 18th / 08 James Low (via Facebook)

      Also realised there’s some other information and a similar fix at the podpress forums:


      11:15am / Aug 18th / 08 James Low

      tagging you dudes again :-P

      12:27pm / Aug 18th / 08 James Low (via Facebook)

      Woah, dude. Sounds really complicated xD

      2:22pm / Aug 18th / 08 David James Shurr (via Facebook)

      :P yeah. I was playing around with java earlier. It's cool~

      10:26pm / Aug 18th / 08 David James Shurr (via Facebook)

      i tried the fix #1 it work with FireFox but still crashes with IE 7.05……any advice?

      5:26am / Aug 19th / 08 stefano

      My fix was mainly so that podpress actually showed up when you saved a post, not fixing any crashing problems in browsers.

      And sorry I’m on a Mac so I don’t have IE :-(

      7:55am / Aug 19th / 08 James Low

      Sweet, let's do it.

      11:03am / Aug 19th / 08 David James Shurr (via Facebook)

      […] The fix was disabling the new feature that allows tracking changes to posts. Well I came across another fix today that might just work as well AND allow me to track changes to posts. I don’t know that […]

      […] making hits. Its rather me and my schedule. I finally made the PodPress Plug in to work(thanks to James D. Low) so expect all the missing music files, and a lot […]