[wp-trac] [WordPress Trac] #27836: Uncaught TypeError in media-editor.js on edit.php screen

WordPress Trac noreply at wordpress.org
Wed Apr 16 15:25:36 UTC 2014


#27836: Uncaught TypeError in media-editor.js on edit.php screen
-------------------------------+--------------------------
 Reporter:  helgatheviking     |       Owner:  markjaquith
     Type:  defect (bug)       |      Status:  closed
 Priority:  normal             |   Milestone:  3.9
Component:  Posts, Post Types  |     Version:  trunk
 Severity:  normal             |  Resolution:  fixed
 Keywords:                     |     Focuses:  javascript
-------------------------------+--------------------------
Changes (by markjaquith):

 * owner:   => markjaquith
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"28149"]:
 {{{
 #!CommitTicketReference repository="" revision="28149"
 Ensure that `wp.media.view.settings.post` is set before accessing the
 post's id

 Avoids JS error in cases where media-editor is loaded individually
 instead of with the whole `wp_enqueue_media()` process.

 fixes #27836. props nacin
 }}}

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


More information about the wp-trac mailing list