Simplify to_ping query. Fixes #5649 props misterbisson.
git-svn-id: https://develop.svn.wordpress.org/trunk@6603 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
17bb5332ab
commit
8151a4a389
|
@ -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