WordPress.org

Make WordPress Core

Opened 2 years ago

Last modified 2 years ago

#20625 closed defect (bug)

Attachment editing shouldn't allow you to edit other post types — at Version 1

Reported by: helenyhou Owned by:
Milestone: 3.4 Priority: normal
Severity: normal Version: 2.5
Component: Media Keywords: has-patch commit
Focuses: Cc:

Description (last modified by helenyhou)

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.

http://core.trac.wordpress.org/raw-attachment/ticket/20625/attachment-edit-hello-world.png

Change History (3)

helenyhou2 years ago

comment:1 helenyhou2 years ago

  • Description modified (diff)

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

(Look everybody, no CSS!)

Note: See TracTickets for help on using tickets.