Don't trackbacks from draft post. Props markjaquith. fixes #1801

git-svn-id: https://develop.svn.wordpress.org/trunk@3002 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2005-11-06 07:10:15 +00:00
parent a1fdbc44d0
commit 1aeea064c8
1 changed files with 2 additions and 2 deletions

View File

@ -27,11 +27,11 @@ function execute_all_pings() {
}
}
// Do Trackbacks
if($trackbacks = $wpdb->get_results("SELECT ID FROM $wpdb->posts WHERE TRIM(to_ping) != ''")) {
if($trackbacks = $wpdb->get_results("SELECT ID FROM $wpdb->posts WHERE TRIM(to_ping) != '' AND post_status != 'draft'")) {
foreach($trackbacks as $trackback) {
//echo "trackback : $trackback->ID<br/>";
do_trackbacks($trackback->ID);
}
}
}
?>
?>