[wp-trac] [WordPress Trac] #45886: Media modal .edit-attachment link opens in new tab rather than in modal

WordPress Trac noreply at wordpress.org
Wed Jan 9 19:52:31 UTC 2019


#45886: Media modal .edit-attachment link opens in new tab rather than in modal
-----------------------------+-----------------------------
 Reporter:  statelessstudio  |      Owner:  (none)
     Type:  defect (bug)     |     Status:  new
 Priority:  normal           |  Milestone:  Awaiting Review
Component:  Media            |    Version:  5.0.2
 Severity:  normal           |   Keywords:
  Focuses:                   |
-----------------------------+-----------------------------
 Using the `wp.media` JavaScript API creates a link "Edit Image" (`.edit-
 attachment`) in the right sidebar of the Media modal.  Expected behavior
 would be to open the "Edit Image" modal, as does the Featured Image media
 modal.

 However, the custom Media modal does not behave consistently with the
 Featured Image modal - the `.edit-attachment` link opens in a new tab
 instead of the modal - which is both unintuitive and frustrating to end-
 users.

 The console does not display any warnings or errors.

 Custom media modal as documented:
 [https://codex.wordpress.org/Javascript_Reference/wp.media]

 As a side note, I have noticed similar behavior in the WordPress Media
 page:

 Media (Admin Sidebar) -> Click a picture -> Edit more Details

 This also fails to open the modal - and opens in the current page instead.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/45886>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list