attachment_fields_to_edit should have flags for when to show the field
|Reported by:||helenyhou||Owned by:|
Previously, you could use IFRAME_REQUEST to determine whether or not to show a field in a given situation, as the old modal was in an iframe, whereas the inline attachment editing screen was not. The new modal is inline, and thus that detection no longer works.
It is possible to check the WP_Screen object for the post_type to achieve the same effect, but if for some reason somebody has turned on the modal for attachments, it won't quite work.
Change History (29)
- Keywords has-patch added
- Milestone changed from Awaiting Review to 3.5