[wp-trac] [WordPress Trac] #22759: attachment_fields_to_edit should have flags for when to show the field

WordPress Trac noreply at wordpress.org
Wed Dec 5 18:53:58 UTC 2012


#22759: attachment_fields_to_edit should have flags for when to show the field
-----------------------------+--------------------------
 Reporter:  helenyhou        |       Type:  defect (bug)
   Status:  new              |   Priority:  normal
Milestone:  Awaiting Review  |  Component:  Media
  Version:  trunk            |   Severity:  normal
 Keywords:                   |
-----------------------------+--------------------------
 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.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/22759>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list