From 68987bec00ace08d68c73e8be430771dfd69e436 Mon Sep 17 00:00:00 2001 From: ryan Date: Sun, 6 Nov 2005 07:10:15 +0000 Subject: [PATCH] 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 --- 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 +?>