[wp-trac] [WordPress Trac] #14639: Posts in the Trash drag attachment pages down with them
WordPress Trac
noreply at wordpress.org
Thu May 2 03:00:14 UTC 2013
#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 | Resolution:
Keywords: |
--------------------------+------------------------------
Changes (by mindctrl):
* cc: dailyrants@… (added)
Comment:
This affects other posts too, not just the original post to which a media
item is attached.
For example, if you add the same image to two posts, and set it to link to
the attachment page in both posts, it breaks the link in the second post
when the first post is deleted or set as a draft.
It's kinda tricky. On the one hand, you might want a media item's
visibility linked to the post it is attached to. On the other, it pretty
much messes with the concept of a central media library. When a media item
is "attached" to something, it's no longer a neutral object available for
use everywhere without conditions. If it's simply referenced and not
attached, its usable everywhere and its permalink is tied to itself
instead of another object.
To the point made by the OP about what happens when the original post is
emptied from the trash, it's just weird that the permalink of the
attachment begins to work again and still lives at a location attached to
the original post slug. site.com/deleted-post-title/attachment. That just
seems wrong.
Any "solution" to this seems equally annoying from a UI perspective, as
one would need to declare that an item is either attached to another
object or is a global asset to be referenced as a unique independent
asset.
One that comes to mind, but isn't obvious without people discovering it
through trial and error, is that if an item is uploaded by Media > Add
New, it is an independent object. If it's inserted into a post via the
"Add Media" button in the post editor screen, it becomes tied to that
object as it currently does.
I'm very likely overlooking something here, but the current situation
seems far less than ideal. Does anyone else have any insight here?
--
Ticket URL: <http://core.trac.wordpress.org/ticket/14639#comment:8>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list