Changeset 3002

Show
Ignore:
Timestamp:
11/06/05 07:10:15 (3 years ago)
Author:
ryan
Message:

Don't trackbacks from draft post. Props markjaquith. fixes #1801

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-admin/execute-pings.php

    r2863 r3002  
    2828    } 
    2929    // Do Trackbacks 
    30     if($trackbacks = $wpdb->get_results("SELECT ID FROM $wpdb->posts WHERE TRIM(to_ping) != ''")) { 
     30    if($trackbacks = $wpdb->get_results("SELECT ID FROM $wpdb->posts WHERE TRIM(to_ping) != '' AND post_status != 'draft'")) { 
    3131        foreach($trackbacks as $trackback) { 
    3232            //echo "trackback : $trackback->ID<br/>";