Skip to content
Snippets Groups Projects
Commit a90bd860 authored by lucha's avatar lucha
Browse files

typo

parent 1838af36
Branches
No related tags found
No related merge requests found
Pipeline #16251 passed
......@@ -31,7 +31,7 @@ add_filter('option_close_comments_days_old', 'override_close_comments_days_old',
# which post_types do we need to close automatically after X days?
# Wordpress defaults to 'posts' (but let's check if got removed and add it back)
add_filter('close_comments_for_post_types', function ($post_types){
if (! in_post_types('post'), $post_types ){
if (! in_array('post', $post_types) ){
$post_types[] = 'post';
}
$post_types[] = 'page';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment