Wordpress Trackback Fix

// 29/08/2004 14:12 // Etiquetas: , , , , , ,

(Esta entrada está en inglés para que su contenido pueda ser leido por más gente. Si alguien tiene problemas para entenderlo, que lo comente y se lo explicaré en castellano)

Here is my solution to the trackback bug on WordPress. I tested it on v1.2 Mingus.

First of all, edit the “wp-includes/functions.php” as mentioned here (english), or here (german), or here (spanish).
Then, edit the file “post.php” under wp-admin folder. I made this changes:

Search for this code and cut the emphasized line:

..
case 'post':
..
  if ($post_status == 'publish') {
..
    do_action('publish_post', $post_ID);
..
  } // end if publish
..

Paste it a little more down, just before the closing of the if:

..
    do_action('publish_post', $post_ID);
  } // end if publish
..

Make the same with the line in the editpost case:

..
case 'editpost':
..
  if ($post_status == 'publish') {
    do_action('publish_post', $post_ID);
..
  } // end if publish
..

Paste it here:

..
    do_action('publish_post', $post_ID);
  } // end if publish
..

This solves the problem for me. I hope that it helps you.

For those that don’t know/want to edit the code, here you have the post.php and functions.php files (zip compressed):
wordpress_trackback_fix.zip (only for Wordpress v1.2)

— Update 2005-01-24 —

Stefano merges the patch into Wordpress v1.2.2 files. You can download patched files from here: wordpress_trackback_fix_v122.zip.

Comparte esta entrada:
  • Facebook
  • Twitter
  • del.icio.us
  • Meneame
  • Google Bookmarks
  • web
    Gracias!
  • MUCHAS gracias!!!
  • Muchas gracias por tu ayuda :-)
    Stephan
  • Gracias!
  • I tried it, and I'm able to send trackbacks, but I'm still not able to receive trackbacks.
  • El Ping out (Trackback Out) funciono. te he hecho trackback desde mi otro blog noseasboludo.com , mi problema ahora es como se compone la direccion para mi trackback IN.
    si hago copy and paste de lo que me muestra como valid trackback address en IE, me muestra error 404 ... ejemplo http://www.noseasboludo.com/wp-trackback.php/135

    Alguien arreglo eso?
  • Just tested your fix on my site and it works! Thanks for the great tip!
  • Yay! It worked! Thank you!
  • Ozh
    Muchas gracias por este articulo :)
  • interesante :) he probado en local y parece que tb funciona en casos que antes no tiraban :) gracias por el apunte IoZ
blog comments powered by Disqus