[wp-trac] [WordPress Trac] #14639: Posts in the Trash drag attachment pages down with them

WordPress Trac wp-trac at lists.automattic.com
Wed Aug 18 20:28:50 UTC 2010


#14639: Posts in the Trash drag attachment pages down with them
--------------------------+-------------------------------------------------
 Reporter:  markel        |       Owner:                 
     Type:  defect (bug)  |      Status:  new            
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Media         |     Version:  3.0.1          
 Severity:  normal        |    Keywords:                 
--------------------------+-------------------------------------------------
 If you have an attachment linked to a post, then move the post to the
 Trash, the attachment page results in a 404.

 Steps to reproduce:

  1. Create a new post with at least one image attached to it (just add it
 to the post).
  2. Publish the post.
  3. Check both the attachment URL (it will be a "child" of the post to
 which it is attached) and the post URL.
  4. Move the post to the Trash.
  5. Try to "View" the attachment either by going through the Media Library
 or by refreshing the attachment URL. WordPress will display a 404 message.

 Deleting the post permanently can cause the attachment permalink to work
 again, both with the page parent in the slug and without that information
 in the form http://sitename.com/attachmentname/ .

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


More information about the wp-trac mailing list