[wp-trac] [WordPress Trac] #22495: Localize media-popup.js?

WordPress Trac noreply at wordpress.org
Sun Nov 18 10:11:57 UTC 2012


#22495: Localize media-popup.js?
-----------------------------+--------------------------
 Reporter:  bradyvercher     |       Type:  defect (bug)
   Status:  new              |   Priority:  normal
Milestone:  Awaiting Review  |  Component:  Media
  Version:  trunk            |   Severity:  normal
 Keywords:                   |
-----------------------------+--------------------------
 Some plugins that enqueue media-upload.js in the dashboard are throwing a
 javascript error in the beta: ''ReferenceError: _wpMediaViewsL10n is not
 defined''.

 This can be reproduced by implementing the following code and visiting any
 dashboard page that doesn't include the media upload functionality by
 default:

 {{{
 add_action( 'admin_enqueue_scripts', 'media_upload_js_test' );
 function media_upload_js_test() {
         wp_enqueue_script( 'media-upload' );
 }
 }}}

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


More information about the wp-trac mailing list