diff --git a/wp-admin/execute-pings.php b/wp-admin/execute-pings.php index 1cc0c1d46f..6dc575f152 100644 --- a/wp-admin/execute-pings.php +++ b/wp-admin/execute-pings.php @@ -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
"; do_trackbacks($trackback->ID); } } } -?> \ No newline at end of file +?>