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:
Peter Westwood 2008-01-12 17:31:17 +00:00
parent 17bb5332ab
commit 8151a4a389
1 changed files with 1 additions and 1 deletions

View File

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