Close comments for old posts, pages, and attachments, not just posts. Props mrmist. fixes #8740
git-svn-id: http://svn.automattic.com/wordpress/trunk@10273 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
13dec849de
commit
a3becc9f3a
|
@ -1580,7 +1580,7 @@ function update_comment_cache($comments) {
|
|||
* @return object
|
||||
*/
|
||||
function _close_comments_for_old_posts( $posts ) {
|
||||
if ( empty($posts) || !is_single() || !get_option('close_comments_for_old_posts') )
|
||||
if ( empty($posts) || !is_singular() || !get_option('close_comments_for_old_posts') )
|
||||
return $posts;
|
||||
|
||||
$days_old = (int) get_option('close_comments_days_old');
|
||||
|
|
Loading…
Reference in New Issue