## wordpress.org – Allow comments box cannot be checked on *any* pages

Question

WordPress 5.1.4 with twentynineteen theme 2.0

I Quick Edit a page and check the Allow Comments box, then click the Update button. There is no message displayed, but when I Quick Edit that page again, the box is unchecked. I saw this answer to a related question, and even though the theme does not have a similar filter, I put the following in a plugin, and activated it:

function default_comments_on( $data ) { // Adapted from https://wordpress.stackexchange.com/a/179682/44613 if($data['post_type'] == 'page') {
$data['comment_status'] = 1; } return$data;
}