get_col() instead of get_results(). Props fitzrev. fixes #5699
git-svn-id: https://develop.svn.wordpress.org/trunk@6640 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
908dfb2480
commit
86c6a5c1a2
@ -992,11 +992,10 @@ function do_all_pings() {
|
||||
}
|
||||
|
||||
// Do Trackbacks
|
||||
$trackbacks = $wpdb->get_results("SELECT ID FROM $wpdb->posts WHERE to_ping <> '' AND post_status = 'publish'");
|
||||
if ( is_array($trackbacks) ) {
|
||||
$trackbacks = $wpdb->get_col("SELECT ID FROM $wpdb->posts WHERE to_ping <> '' AND post_status = 'publish'");
|
||||
if ( is_array($trackbacks) )
|
||||
foreach ( $trackbacks as $trackback )
|
||||
do_trackbacks($trackback->ID);
|
||||
}
|
||||
do_trackbacks($trackback);
|
||||
|
||||
//Do Update Services/Generic Pings
|
||||
generic_ping();
|
||||
|
Loading…
Reference in New Issue
Block a user