Skip to content

PingBacks in WordPress after drafting a message

Some handwritten draft

I’ve just recently noticed that WordPress 1.2 does not send PingBacks from an entry when it has been stored as ‘draft’ and published afterwards.

This seems to be a bug in that version of WordPress – a forgotten line or something.

Here is what to do to get it working (again?):

Find the line that says case 'editpost': in the file wp-admin/post.php and add $post_pingback = intval($_POST['post_pingback']); somewhere after that line. Resulting in something like this:

case 'editpost':
  $post_pingback = intval($_POST['post_pingback']);

Et voila. PingBacks work again…

Post a Comment

Your email is never published nor shared. Required fields are marked *