From 1aeea064c89eeaecc8706e62957d3ab48a92e921 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Sun, 6 Nov 2005 07:10:15 +0000 Subject: [PATCH] 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 --- wp-admin/execute-pings.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 +?>