Make WordPress Core


Ignore:
Timestamp:
02/04/2008 08:27:45 PM (17 years ago)
Author:
ryan
Message:

Add filters to comments_open() and pings_open(). Props tellyworth. fixes #5761

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-trackback.php

    r5843 r6716  
    7070    header('Content-Type: text/xml; charset=' . get_option('blog_charset') );
    7171
    72     $pingstatus = $wpdb->get_var("SELECT ping_status FROM $wpdb->posts WHERE ID = $tb_id");
    73 
    74     if ( 'open' != $pingstatus )
     72    if ( !pings_open($tb_id) )
    7573        trackback_response(1, 'Sorry, trackbacks are closed for this item.');
    7674
Note: See TracChangeset for help on using the changeset viewer.