Simplify to_ping query. Fixes #5649 props misterbisson.
git-svn-id: http://svn.automattic.com/wordpress/trunk@6603 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
47ee44af0f
commit
e0856a070f
|
@ -990,7 +990,7 @@ function do_all_pings() {
|
|||
}
|
||||
|
||||
// Do Trackbacks
|
||||
$trackbacks = $wpdb->get_results("SELECT ID FROM $wpdb->posts WHERE CHAR_LENGTH(TRIM(to_ping)) > 7 AND post_status = 'publish'");
|
||||
$trackbacks = $wpdb->get_results("SELECT ID FROM $wpdb->posts WHERE to_ping <> '' AND post_status = 'publish'");
|
||||
if ( is_array($trackbacks) ) {
|
||||
foreach ( $trackbacks as $trackback )
|
||||
do_trackbacks($trackback->ID);
|
||||
|
|
Loading…
Reference in New Issue