Ticket #5649: comment_to_ping.diff
File comment_to_ping.diff, 551 bytes (added by , 17 years ago) |
---|
-
comment.php
624 624 } 625 625 626 626 // Do Trackbacks 627 $trackbacks = $wpdb->get_results("SELECT ID FROM $wpdb->posts WHERE CHAR_LENGTH(TRIM(to_ping)) > 7AND post_status = 'publish'");627 $trackbacks = $wpdb->get_results("SELECT ID FROM $wpdb->posts WHERE to_ping <> '' AND post_status = 'publish'"); 628 628 if ( is_array($trackbacks) ) { 629 629 foreach ( $trackbacks as $trackback ) 630 630 do_trackbacks($trackback->ID);