Trackback only for published posts.

git-svn-id: https://develop.svn.wordpress.org/trunk@3521 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2006-02-12 09:07:37 +00:00
parent 609f602104
commit d5c2312e67
1 changed files with 1 additions and 1 deletions

View File

@ -15,7 +15,7 @@ while ($enclosure = $wpdb->get_row("SELECT * FROM {$wpdb->posts}, {$wpdb->postme
} }
// Do Trackbacks // Do Trackbacks
$trackbacks = $wpdb->get_results("SELECT ID FROM $wpdb->posts WHERE CHAR_LENGTH(TRIM(to_ping)) > 7 AND post_status != 'draft'"); $trackbacks = $wpdb->get_results("SELECT ID FROM $wpdb->posts WHERE CHAR_LENGTH(TRIM(to_ping)) > 7 AND post_status = 'publish'");
if ( is_array($trackbacks) ) { if ( is_array($trackbacks) ) {
foreach ( $trackbacks as $trackback ) { foreach ( $trackbacks as $trackback ) {
do_trackbacks($trackback->ID); do_trackbacks($trackback->ID);