[wp-trac] [WordPress Trac] #27111: Turning off global comments should include existing content

WordPress Trac noreply at wordpress.org
Sat Feb 15 04:56:07 UTC 2014


#27111: Turning off global comments should include existing content
-------------------------+-----------------------------
 Reporter:  jenmylo      |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  3.9
Component:  Comments     |     Version:  trunk
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |     Focuses:  administration
-------------------------+-----------------------------
Changes (by jackreichert):

 * keywords:  needs-patch => has-patch


Comment:

 While the IRC discussion seems to imply that fulfilling this ticket should
 implement function that goes and turns off comments for each post, I
 thought that perhaps, instead, a new options flag may be cleaner. I tend
 to prefer to provide options that are not irrevocable. Switching all
 comments off, one post at a time, is hard to undo.

 The attached patch sets up a new option in the options table similar to
 'default_comment_status' but would be global.

 The only thing missing from the patch is the line:

 {{{
 INSERT INTO  `wordpress`.`wp_options` (`option_name` , `option_value`)
 VALUES ('global_comment_status',  'open');
 }}}

 I wasn't sure where/how to add that to the patch.

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


More information about the wp-trac mailing list