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:
parent
a1fdbc44d0
commit
1aeea064c8
@ -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