[wp-trac] [WordPress Trac] #20625: Attachment editing shouldn't allow you to edit other post types

WordPress Trac wp-trac at lists.automattic.com
Sun May 6 20:44:30 UTC 2012


#20625: Attachment editing shouldn't allow you to edit other post types
--------------------------+------------------------------
 Reporter:  helenyhou     |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Media         |     Version:  2.5
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |
--------------------------+------------------------------

Old description:

> It is possible to edit a non-attachment post in the media editor by
> changing the `attachment_id` in the URL, e.g. to 1. Nothing is
> particularly broken, but it looks a bit strange.

New description:

 It is possible to edit a non-attachment post in the media editor by
 changing the `attachment_id` in the URL, e.g. to 1. Nothing is
 particularly broken, but it looks a bit strange.

 [[Image(http://core.trac.wordpress.org/raw-attachment/ticket/20625
 /attachment-edit-hello-world.png)]]

--

Comment (by helenyhou):

 [attachment:20625.diff] just adds a `wp_die()` with a brief message, much
 as it does for trashed items.

 (Look everybody, no CSS!)

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/20625#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list