Changeset 22770 for trunk/wp-includes/script-loader.php
- Timestamp:
- 11/21/2012 04:46:32 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/script-loader.php
r22653 r22770 299 299 ) ); 300 300 301 $scripts->add( 'media-upload', "/wp-admin/js/media-upload$suffix.js", array( 'thickbox', 'shortcode' , 'media-views'), false, 1 );301 $scripts->add( 'media-upload', "/wp-admin/js/media-upload$suffix.js", array( 'thickbox', 'shortcode' ), false, 1 ); 302 302 303 303 $scripts->add( 'hoverIntent', "/wp-includes/js/hoverIntent$suffix.js", array('jquery'), 'r6', 1 ); … … 319 319 ) ); 320 320 321 $scripts->add( 'shortcode', "/wp-includes/js/shortcode$suffix.js", array( 'underscore' ), false, 1 ); 321 322 $scripts->add( 'media-models', "/wp-includes/js/media-models$suffix.js", array( 'backbone', 'jquery' ), false, 1 ); 322 323 did_action( 'init' ) && $scripts->localize( 'media-models', '_wpMediaModelsL10n', array( 323 'saveAttachmentNonce' => wp_create_nonce( 'save-attachment' ), 324 ) ); 325 324 'settings' => array( 325 'saveAttachmentNonce' => wp_create_nonce( 'save-attachment' ), 326 'ajaxurl' => admin_url( 'admin-ajax.php', 'relative' ), 327 ), 328 ) ); 329 330 // To enqueue media-views or media-editor, call wp_enqueue_media(). 331 // Both rely on numerous settings, styles, and templates to operate correctly. 326 332 $scripts->add( 'media-views', "/wp-includes/js/media-views$suffix.js", array( 'media-models', 'wp-plupload' ), false, 1 ); 327 $scripts->add( ' shortcode', "/wp-includes/js/shortcode$suffix.js", array( 'underscore' ), false, 1 );333 $scripts->add( 'media-editor', "/wp-includes/js/media-editor$suffix.js", array( 'shortcode', 'media-views' ), false, 1 ); 328 334 $scripts->add( 'mce-view', "/wp-includes/js/mce-view$suffix.js", array( 'shortcode', 'media-models' ), false, 1 ); 329 335
Note: See TracChangeset
for help on using the changeset viewer.