mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-03-29 01:34:27 +00:00
Fix redirecting of old slugs when Close Old Comments is enabled, props DD32, fixes #7976
git-svn-id: https://develop.svn.wordpress.org/trunk@9373 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1537,7 +1537,7 @@ function update_comment_cache($comments) {
|
||||
* @return object
|
||||
*/
|
||||
function _close_comments_for_old_posts( $posts ) {
|
||||
if ( !is_single() || !get_option('close_comments_for_old_posts') )
|
||||
if ( empty($posts) || !is_single() || !get_option('close_comments_for_old_posts') )
|
||||
return $posts;
|
||||
|
||||
$days_old = (int) get_option('close_comments_days_old');
|
||||
|
||||
Reference in New Issue
Block a user