Changeset 48384
- Timestamp:
- 07/07/2020 04:12:14 PM (5 years ago)
- Location:
- trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/js/_enqueues/admin/media.js
r47807 r48384 11 11 */ 12 12 13 /* global ajaxurl, attachMediaBoxL10n,_wpMediaGridSettings, showNotice, findPosts */13 /* global ajaxurl, _wpMediaGridSettings, showNotice, findPosts */ 14 14 15 15 ( function( $ ){ … … 125 125 }).done( function( x ) { 126 126 if ( ! x.success ) { 127 $( '#find-posts-response' ).text( attachMediaBoxL10n.error);127 $( '#find-posts-response' ).text( wp.i18n.__( 'An error has occurred. Please reload the page and try again.' ) ); 128 128 } 129 129 130 130 $( '#find-posts-response' ).html( x.data ); 131 131 }).fail( function() { 132 $( '#find-posts-response' ).text( attachMediaBoxL10n.error);132 $( '#find-posts-response' ).text( wp.i18n.__( 'An error has occurred. Please reload the page and try again.' ) ); 133 133 }); 134 134 } -
trunk/src/wp-includes/script-loader.php
r48383 r48384 1358 1358 $scripts->add( 'media-grid', "/wp-includes/js/media-grid$suffix.js", array( 'media-editor' ), false, 1 ); 1359 1359 $scripts->add( 'media', "/wp-admin/js/media$suffix.js", array( 'jquery' ), false, 1 ); 1360 did_action( 'init' ) && $scripts->localize( 1361 'media', 1362 'attachMediaBoxL10n', 1363 array( 1364 'error' => __( 'An error has occurred. Please reload the page and try again.' ), 1365 ) 1366 ); 1360 $scripts->set_translations( 'media' ); 1367 1361 1368 1362 $scripts->add( 'image-edit', "/wp-admin/js/image-edit$suffix.js", array( 'jquery', 'jquery-ui-core', 'json2', 'imgareaselect', 'wp-a11y' ), false, 1 );
Note: See TracChangeset
for help on using the changeset viewer.