[wp-trac] Re: [WordPress Trac] #8177: Comments disabled in post but not in media gallery

WordPress Trac wp-trac at lists.automattic.com
Thu Dec 4 22:38:33 GMT 2008

#8177: Comments disabled in post but not in media gallery
 Reporter:  canon2k5                                                                     |        Owner:     
     Type:  defect                                                                       |       Status:  new
 Priority:  normal                                                                       |    Milestone:  2.7
Component:  Gallery                                                                      |      Version:  2.7
 Severity:  normal                                                                       |   Resolution:     
 Keywords:  image gallery attachment commenting discussion preference reporter-feedback  |  
Comment (by DD32):

 I dont think its a theme bug, Well, If it is, Its because the bug exists
 in the default theme.

 <?php if ('open' == $post->comment_status) : ?>
 The theme only checks that the current post's(attachment) comment status
 is open, And closing the status on a parent doesnt follow through to

 A potential solution would be to do a lookup on the parent and check its
 comment_status, and set the attachment to the same during the query.

Ticket URL: <http://trac.wordpress.org/ticket/8177#comment:5>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software

More information about the wp-trac mailing list