WordPress.org

Make WordPress Core

Changeset 6640


Ignore:
Timestamp:
01/22/08 05:50:22 (7 years ago)
Author:
ryan
Message:

get_col() instead of get_results(). Props fitzrev. fixes #5699

File:
1 edited

Legend:

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

    r6610 r6640  
    993993 
    994994    // Do Trackbacks 
    995     $trackbacks = $wpdb->get_results("SELECT ID FROM $wpdb->posts WHERE to_ping <> '' AND post_status = 'publish'"); 
    996     if ( is_array($trackbacks) ) { 
     995    $trackbacks = $wpdb->get_col("SELECT ID FROM $wpdb->posts WHERE to_ping <> '' AND post_status = 'publish'"); 
     996    if ( is_array($trackbacks) ) 
    997997        foreach ( $trackbacks as $trackback ) 
    998             do_trackbacks($trackback->ID); 
    999     } 
     998            do_trackbacks($trackback); 
    1000999 
    10011000    //Do Update Services/Generic Pings 
Note: See TracChangeset for help on using the changeset viewer.