Make WordPress Core


Ignore:
Timestamp:
09/30/2011 03:35:50 PM (13 years ago)
Author:
ryan
Message:

Pass the query object to _close_comments_for_old_posts() so that is_singular is checked for the proper query. Props kawauso. fixes #18109

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/default-filters.php

    r18809 r18836  
    190190add_filter( 'option_tag_base',          '_wp_filter_taxonomy_base'            );
    191191add_filter( 'option_category_base',     '_wp_filter_taxonomy_base'            );
    192 add_filter( 'the_posts',                '_close_comments_for_old_posts'       );
     192add_filter( 'the_posts',                '_close_comments_for_old_posts', 10, 2);
    193193add_filter( 'comments_open',            '_close_comments_for_old_post', 10, 2 );
    194194add_filter( 'pings_open',               '_close_comments_for_old_post', 10, 2 );
Note: See TracChangeset for help on using the changeset viewer.