[wp-trac] [WordPress Trac] #17568: "Comments are Closed" even when comments are not supported.

WordPress Trac wp-trac at lists.automattic.com
Thu Jun 2 19:44:25 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 dev-feedback  |
------------------------------------+------------------

Comment (by duck_):

 Some concerns in IRC bug scrub about the addition complicating the theme.

 Attached 17568-simplify.diff which adds the post_type_supports check to be
 with the existing `! is_page()` check. It also simplifies quite a bit of
 the logic surrounding the "Comments are closed." note by removing
 extraneous code and conditional branches.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/17568#comment:7>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list