[wp-trac] [WordPress Trac] #20262: When "Automatically close comments on articles older than X days" is enabled, comments appear closed on draft posts

WordPress Trac noreply at wordpress.org
Sun Jun 14 17:58:06 UTC 2015


#20262: When "Automatically close comments on articles older than X days" is
enabled, comments appear closed on draft posts
------------------------------+--------------------------
 Reporter:  evarlese          |       Owner:  rachelbaker
     Type:  defect (bug)      |      Status:  accepted
 Priority:  normal            |   Milestone:  4.3
Component:  Comments          |     Version:  3.3
 Severity:  normal            |  Resolution:
 Keywords:  has-patch commit  |     Focuses:
------------------------------+--------------------------

Comment (by nacin):

 I think this needs to be a bit more encompassing. Right now, core closes
 comments on drafts, published posts, etc., but also privately published
 posts. Changing this to just `'publish'` would harm some of that.

 I think we should just hardcode this to skip 0 values.

 I would have it skip 'draft', 'pending', and 'auto-draft' — like what
 currently happens for 0000-00-00 values in wp_insert_post() — but I think
 hardcoding it actually makes sense here. If it's a "draft" backdated 31
 days, then it probably *should* show up as comments closed.

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


More information about the wp-trac mailing list