[wp-trac] [WordPress Trac] #60161: Comments on pages where comments are not allowed

WordPress Trac noreply at wordpress.org
Tue Feb 6 14:42:18 UTC 2024


#60161: Comments on pages where comments are not allowed
-------------------------------------------------+-------------------------
 Reporter:  is0ph                                |       Owner:  (none)
     Type:  defect (bug)                         |      Status:  new
 Priority:  normal                               |   Milestone:  Awaiting
                                                 |  Review
Component:  Comments                             |     Version:  6.4.2
 Severity:  normal                               |  Resolution:
 Keywords:  needs-screenshots needs-testing-     |     Focuses:
  info                                           |
-------------------------------------------------+-------------------------

Comment (by nxmndr):

 Hosting in the hundreds of websites here and I have seen a surge of spam
 recently. Had to turn off comments and pingbacks for all past posts. This
 requires SQL as WP UI does not allow it :


 {{{
 update wp_posts set comment_status = 'closed', ping_status = 'closed'
 where post_type in ('page', 'attachment', 'article');
 }}}

 Make sure to check the values in the DB as some pages still have 'open'
 due to being another type / created by an extension.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/60161#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list