mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-26 02:01:37 +01:00
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
@ -27,11 +27,11 @@ function execute_all_pings() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Do Trackbacks
|
// 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) {
|
foreach($trackbacks as $trackback) {
|
||||||
//echo "trackback : $trackback->ID<br/>";
|
//echo "trackback : $trackback->ID<br/>";
|
||||||
do_trackbacks($trackback->ID);
|
do_trackbacks($trackback->ID);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
Loading…
Reference in New Issue
Block a user