[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
wp-trac at lists.automattic.com
Wed Mar 21 06:44:57 UTC 2012
#20262: When "Automatically close comments on articles older than X days" is
enabled, comments appear closed on draft posts
--------------------------+------------------------------
Reporter: evarlese | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Comments | Version: 3.3
Severity: normal | Resolution:
Keywords: has-patch |
--------------------------+------------------------------
Changes (by solarissmoke):
* keywords: => has-patch
* component: General => Comments
Comment:
This is being caused by `_close_comments_for_old_posts()`, which uses
`post_date_gmt` to work out when the post was published. But for drafts
this is always set to 0, so the post always appears to be older than the
max age threshold.
I'm thinking that the filter should only apply to published posts... see
patch.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/20262#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list