Make WordPress Core

Changeset 3002


Ignore:
Timestamp:
11/06/2005 07:10:15 AM (18 years ago)
Author:
ryan
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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/>";
Note: See TracChangeset for help on using the changeset viewer.