[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:40:33 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:  4.0.1
Component:  Media                    |     Version:  4.0
 Severity:  major                    |  Resolution:
 Keywords:  needs-patch dev-         |     Focuses:  ui, javascript,
  feedback                           |  administration
-------------------------------------+-------------------------------------
Changes (by ericlewis):

 * keywords:  needs-patch => needs-patch dev-feedback


Comment:

 Not sure about the best approach here.

 We need awareness in Javascript whether we're on the media grid page vs.
 any other page (including the Media list page).

 A conditional like `document.body.className.indexOf( 'upload-php' ) !==
 -1` comes to mind, but this is also returns true if we're on the Media
 list page.

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


More information about the wp-trac mailing list