[wp-trac] [WordPress Trac] #17568: "Comments are Closed" even when comments are not supported.
WordPress Trac
wp-trac at lists.automattic.com
Sat May 28 00:35:09 UTC 2011
#17568: "Comments are Closed" even when comments are not supported.
--------------------------+------------------
Reporter: mfields | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.2
Component: Themes | Version: 3.2
Severity: normal | Resolution:
Keywords: has-patch |
--------------------------+------------------
Comment (by greenshady):
This patch will disable comments on single attachment pages because
comments aren't supported when the attachment post type is registered.
There are two options: 1) Add a check for attachments in the above patch
or 2) Add a `supports` array at the time the attachment post type is
registered.
Personally, I like option 2 because I run a similar function in my themes
and have just been registering support for comments on attachments using
`add_post_type_support()`.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/17568#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list