Make WordPress Core

Ticket #5649: comment_to_ping.diff

File comment_to_ping.diff, 551 bytes (added by misterbisson, 17 years ago)
  • comment.php

     
    624624        }
    625625
    626626        // Do Trackbacks
    627         $trackbacks = $wpdb->get_results("SELECT ID FROM $wpdb->posts WHERE CHAR_LENGTH(TRIM(to_ping)) > 7 AND post_status = 'publish'");
     627        $trackbacks = $wpdb->get_results("SELECT ID FROM $wpdb->posts WHERE to_ping <> '' AND post_status = 'publish'");
    628628        if ( is_array($trackbacks) ) {
    629629                foreach ( $trackbacks as $trackback )
    630630                        do_trackbacks($trackback->ID);