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

git-svn-id: http://svn.automattic.com/wordpress/trunk@3002 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2005-11-06 07:10:15 +00:00
parent e19c9ab70c
commit 68987bec00
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);
}
}
}
?>
?>