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

git-svn-id: https://develop.svn.wordpress.org/trunk@6716 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2008-02-04 20:27:45 +00:00
parent 7c3373aae6
commit 40f80710a4
3 changed files with 16 additions and 16 deletions
+1 -3
View File
@@ -69,9 +69,7 @@ if (empty($title) && empty($tb_url) && empty($blog_name)) {
if ( !empty($tb_url) && !empty($title) ) {
header('Content-Type: text/xml; charset=' . get_option('blog_charset') );
$pingstatus = $wpdb->get_var("SELECT ping_status FROM $wpdb->posts WHERE ID = $tb_id");
if ( 'open' != $pingstatus )
if ( !pings_open($tb_id) )
trackback_response(1, 'Sorry, trackbacks are closed for this item.');
$title = wp_specialchars( strip_tags( $title ) );