Wordpress Trackback Fix
// 29/08/2004 14:12 // Etiquetas: informática, internet, php, programación, software, tecnologÃa, wordpress
(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.
-
web
-
Beth
-
Stephan
-
TC_LeatherPenguin
-
Terrance
-
Gastonl
-
Mark
-
Jill
-
Ozh
-
Zootropo








