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:
parent
e19c9ab70c
commit
68987bec00
wp-admin
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
?>
|
||||
?>
|
||||
|
|
Loading…
Reference in New Issue