Viewing unattached attachments results in 404
|Reported by:||ryan||Owned by:||ryan|
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?