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

WordPress Trac noreply at wordpress.org
Thu May 22 07:39:01 UTC 2014


#14639: Posts in the Trash drag attachment pages down with them
--------------------------+--------------------
 Reporter:  markel        |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  4.0
Component:  Media         |     Version:  3.0.1
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:
--------------------------+--------------------
Changes (by ericlewis):

 * keywords:   => has-patch


Comment:

 Replying to [comment:10 azaozz]:
 > Perhaps when moving a post to the trash all attachments have to be
 "unattached" from it. Doesn't make sense to "trash" the attachment pages
 when the attached files are still accessible.

 It seems that an attachment's post status inherits from its post parent
 ([https://core.trac.wordpress.org/changeset/17999 r17999]). I think that's
 weird. An attachment should be private if its post parent is private? An
 attachment should be trashed if its post parent is trashed?

 A conservative effort in attachment:14639.diff changes the post status for
 attachments to respect the post's pre-trash post status.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/14639#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list