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-comments-post.php

    r5777 r6716  
    1717    do_action('comment_id_not_found', $comment_post_ID);
    1818    exit;
    19 } elseif ( 'closed' ==  $status->comment_status ) {
     19} elseif ( !comments_open($comment_post_ID) ) {
    2020    do_action('comment_closed', $comment_post_ID);
    2121    wp_die( __('Sorry, comments are closed for this item.') );
Note: See TracChangeset for help on using the changeset viewer.