[wp-trac] [WordPress Trac] #29520: WP 4.0 "add media" button on edit page not functioning

WordPress Trac noreply at wordpress.org
Sat Sep 6 20:33:02 UTC 2014


#29520: WP 4.0 "add media" button on edit page not functioning
-----------------------------+---------------------------------------------
 Reporter:  lcody            |       Owner:
     Type:  defect (bug)     |      Status:  reopened
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  Media            |     Version:  4.0
 Severity:  major            |  Resolution:
 Keywords:  reporter-        |     Focuses:  ui, javascript, administration
  feedback                   |
-----------------------------+---------------------------------------------
Changes (by ericlewis):

 * status:  closed => reopened
 * resolution:  worksforme =>


Comment:

 This is because plugins are depending on functionality in
 [https://core.trac.wordpress.org/browser/tags/4.0/src/wp-admin/js/media.js
 wp-admin/js/media.js], in which we're bootstrapping media grid.

 We need a conditional check around the wp.media() call to ensure this only
 runs on the media grid page.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/29520#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list