Make WordPress Core

Changeset 6603


Ignore:
Timestamp:
01/12/2008 05:31:17 PM (17 years ago)
Author:
westi
Message:

Simplify to_ping query. Fixes #5649 props misterbisson.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/comment.php

    r6553 r6603  
    991991
    992992    // Do Trackbacks
    993     $trackbacks = $wpdb->get_results("SELECT ID FROM $wpdb->posts WHERE CHAR_LENGTH(TRIM(to_ping)) > 7 AND post_status = 'publish'");
     993    $trackbacks = $wpdb->get_results("SELECT ID FROM $wpdb->posts WHERE to_ping <> '' AND post_status = 'publish'");
    994994    if ( is_array($trackbacks) ) {
    995995        foreach ( $trackbacks as $trackback )
Note: See TracChangeset for help on using the changeset viewer.