[wp-trac] [WordPress Trac] #12999: Viewing unattached attachments results in 404

WordPress Trac wp-trac at lists.automattic.com
Wed Apr 14 14:34:28 UTC 2010


#12999: Viewing unattached attachments results in 404
--------------------------+-------------------------------------------------
 Reporter:  ryan          |       Owner:  ryan
     Type:  defect (bug)  |      Status:  new 
 Priority:  normal        |   Milestone:  3.0 
Component:  Security      |     Version:      
 Severity:  normal        |    Keywords:      
--------------------------+-------------------------------------------------
 Got to Media -> Library.  Click on the "View" link of an Unattached item.
 Note that a 404 results. In 2.9 the attachment page was displayed rather
 than issuing a 404.

 This is due to the modified post status checking in the "Check post status
 to determine if post should be displayed" block of WP_Query::get_posts().
 Unattached attachments have a post status of 'inherit' but a post_parent
 of 0, meaning there is no parent from which to inherit status. In 2.9 the
 implicit status for unattached attachments was published.  In 3.0 the
 implicit status is private.  Which is preferred?

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/12999>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list