Commit a90bd860 authored by lucha's avatar lucha
Browse files


parent 1838af36
Pipeline #16251 passed with stage
in 8 seconds
......@@ -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';
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment