[wp-trac] [WordPress Trac] #19858: Close comments on attached images

WordPress Trac wp-trac at lists.automattic.com
Fri Jan 20 12:55:18 UTC 2012


#19858: Close comments on attached images
--------------------------+------------------
 Reporter:  dohman        |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  3.4
Component:  Media         |     Version:  3.2
 Severity:  normal        |  Resolution:
 Keywords:                |
--------------------------+------------------

Comment (by westi):

 Replying to [comment:2 nacin]:
 > [attachment:19858.diff] simply adds 'attachment' to the array of post
 types to be closed. It's kind of weak — we should probably check the
 parent of the attachment to ensure it is either 0 or a post type of 'post'
 (the filter result) before continuing.

 Maybe we should be using the status of inherit to mean we look at the
 parent in this filter instead?

 So if post-status is inherit we look at the parent's post type and date

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


More information about the wp-trac mailing list