Changeset 22516
- Timestamp:
- 11/10/2012 12:37:13 AM (13 years ago)
- Location:
- trunk/wp-includes
- Files:
-
- 2 edited
-
media.php (modified) (1 diff)
-
script-loader.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/media.php
r22493 r22516 1298 1298 */ 1299 1299 function wp_enqueue_media() { 1300 wp_localize_script( 'media-views', '_wpMediaViewsL10n', array( 1301 // Generic 1302 'insertMedia' => __( 'Insert Media' ), 1303 'search' => __( 'Search' ), 1304 'select' => __( 'Select' ), 1305 'cancel' => __( 'Cancel' ), 1306 'addImages' => __( 'Add images' ), 1307 'selected' => __( 'selected' ), 1308 1309 // Upload 1310 'uploadFilesTitle' => __( 'Upload Files' ), 1311 'selectFiles' => __( 'Select files' ), 1312 'uploadImagesTitle' => __( 'Upload Images' ), 1313 1314 // Library 1315 'mediaLibraryTitle' => __( 'Media Library' ), 1316 'createNewGallery' => __( 'Create a new gallery' ), 1317 'insertIntoPost' => __( 'Insert into post' ), 1318 1319 // Embed 1320 'embedFromUrlTitle' => __( 'Embed From URL' ), 1321 1322 // Batch 1323 'batchInsert' => __( 'Batch insert' ), 1324 'cancelBatchTitle' => __( '← Cancel Batch' ), 1325 'editBatchTitle' => __( 'Edit Batch' ), 1326 'addToBatch' => __( 'Add to batch' ), 1327 1328 // Gallery 1329 'createGalleryTitle' => __( 'Create Gallery' ), 1330 'editGalleryTitle' => __( 'Edit Gallery' ), 1331 'cancelGalleryTitle' => __( '← Cancel Gallery' ), 1332 'insertGallery' => __( 'Insert gallery' ), 1333 'updateGallery' => __( 'Update gallery' ), 1334 'continueEditing' => __( 'Continue editing' ), 1335 'addToGallery' => __( 'Add to gallery' ), 1336 ) ); 1337 1300 1338 wp_enqueue_script( 'media-upload' ); 1301 1339 wp_enqueue_style( 'media-views' ); -
trunk/wp-includes/script-loader.php
r22502 r22516 325 325 326 326 $scripts->add( 'media-views', "/wp-includes/js/media-views$suffix.js", array( 'media-models', 'wp-plupload' ), false, 1 ); 327 did_action( 'init' ) && $scripts->localize( 'media-views', '_wpMediaViewsL10n', array(328 // Generic329 'insertMedia' => __( 'Insert Media' ),330 'search' => __( 'Search' ),331 'select' => __( 'Select' ),332 'cancel' => __( 'Cancel' ),333 'addImages' => __( 'Add images' ),334 'selected' => __( 'selected' ),335 336 // Upload337 'uploadFilesTitle' => __( 'Upload Files' ),338 'selectFiles' => __( 'Select files' ),339 'uploadImagesTitle' => __( 'Upload Images' ),340 341 // Library342 'mediaLibraryTitle' => __( 'Media Library' ),343 'createNewGallery' => __( 'Create a new gallery' ),344 'insertIntoPost' => __( 'Insert into post' ),345 346 // Embed347 'embedFromUrlTitle' => __( 'Embed From URL' ),348 349 // Batch350 'batchInsert' => __( 'Batch insert' ),351 'cancelBatchTitle' => __( '← Cancel Batch' ),352 'editBatchTitle' => __( 'Edit Batch' ),353 'addToBatch' => __( 'Add to batch' ),354 355 // Gallery356 'createGalleryTitle' => __( 'Create Gallery' ),357 'editGalleryTitle' => __( 'Edit Gallery' ),358 'cancelGalleryTitle' => __( '← Cancel Gallery' ),359 'insertGallery' => __( 'Insert gallery' ),360 'updateGallery' => __( 'Update gallery' ),361 'continueEditing' => __( 'Continue editing' ),362 'addToGallery' => __( 'Add to gallery' ),363 ) );364 365 327 $scripts->add( 'shortcode', "/wp-includes/js/shortcode$suffix.js", array( 'underscore' ), false, 1 ); 366 328 $scripts->add( 'mce-view', "/wp-includes/js/mce-view$suffix.js", array( 'shortcode', 'media-models' ), false, 1 );
Note: See TracChangeset
for help on using the changeset viewer.