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

git-svn-id: http://svn.automattic.com/wordpress/trunk@6640 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2008-01-22 05:50:22 +00:00
parent 9cb618d27f
commit 6726698979
1 changed files with 3 additions and 4 deletions

View File

@ -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();