Ticket #48244: 48244.2021091300.patch
| File 48244.2021091300.patch, 5.9 KB (added by , 5 years ago) |
|---|
-
src/js/_enqueues/admin/common.js
354 354 window.setPostThumbnailL10n = deprecateL10nObject( 'setPostThumbnailL10n', window.setPostThumbnailL10n, '5.5.0' ); 355 355 356 356 /** 357 * Removed in 5.9.0, needed for back-compatibility. 358 * 359 * @since 3.9.12 360 * @deprecated 5.9.0 361 */ 362 window.uiAutocompleteL10n = window.uiAutocompleteL10n || { 363 noResults: '', 364 oneResult: '', 365 manyResults: '', 366 itemSelected: '' 367 }; 368 369 window.uiAutocompleteL10n = deprecateL10nObject( 'uiAutocompleteL10n', window.uiAutocompleteL10n, '5.9.0' ); 370 371 /** 357 372 * Removed in 3.3.0, needed for back-compatibility. 358 373 * 359 374 * @since 2.7.0 -
src/js/_enqueues/admin/tags-suggest.js
4 4 * @output wp-admin/js/tags-suggest.js 5 5 */ 6 6 ( function( $ ) { 7 if ( typeof window.uiAutocompleteL10n === 'undefined' ) {8 return;9 }10 11 7 var tempID = 0; 12 8 var separator = wp.i18n._x( ',', 'tag delimiter' ) || ','; 9 var __ = wp.i18n.__, 10 _n = wp.i18n._n, 11 sprintf = wp.i18n.sprintf; 13 12 14 13 function split( val ) { 15 14 return val.split( new RegExp( separator + '\\s*' ) ); … … 138 137 collision: 'none' 139 138 }, 140 139 messages: { 141 noResults: window.uiAutocompleteL10n.noResults,140 noResults: __( 'No results found.' ), 142 141 results: function( number ) { 143 if ( number > 1 ) {144 return window.uiAutocompleteL10n.manyResults.replace( '%d', number );145 }146 147 return window.uiAutocompleteL10n.oneResult;142 /* translators: %d: Number of results found when using jQuery UI Autocomplete. */ 143 return sprintf( _n( '%d result found. Use up and down arrow keys to navigate.', 144 '%d results found. Use up and down arrow keys to navigate.', 145 number ), 146 number ); 148 147 } 149 148 } 150 149 }, options ); -
src/js/_enqueues/vendor/tinymce/plugins/wplink/plugin.js
98 98 var urlRegex2 = /^https?:\/\/[^\/]+\.[^\/]+($|\/)/i; 99 99 var speak = ( typeof window.wp !== 'undefined' && window.wp.a11y && window.wp.a11y.speak ) ? window.wp.a11y.speak : function() {}; 100 100 var hasLinkError = false; 101 var __ = window.wp.i18n.__; 102 var _n = window.wp.i18n._n; 103 var sprintf = window.wp.i18n.sprintf; 101 104 102 105 function getSelectedLink() { 103 106 var href, html, … … 457 460 my: 'left top+2' 458 461 }, 459 462 messages: { 460 noResults: ( typeof window.uiAutocompleteL10n !== 'undefined' ) ? window.uiAutocompleteL10n.noResults : '',463 noResults: __( 'No results found.' ) , 461 464 results: function( number ) { 462 if ( typeof window.uiAutocompleteL10n !== 'undefined' ) { 463 if ( number > 1 ) { 464 return window.uiAutocompleteL10n.manyResults.replace( '%d', number ); 465 } 466 467 return window.uiAutocompleteL10n.oneResult; 468 } 465 /* translators: %d: Number of results found when using jQuery UI Autocomplete. */ 466 return sprintf( _n( '%d result found. Use up and down arrow keys to navigate.', 467 '%d results found. Use up and down arrow keys to navigate.', 468 number ), 469 number ); 469 470 } 470 471 } 471 472 } ).autocomplete( 'instance' )._renderItem = function( ul, item ) { -
src/wp-includes/script-loader.php
806 806 $scripts->add( 'jquery-ui-position', false, array( 'jquery-ui-core' ), '1.13.0-rc.2', 1 ); 807 807 $scripts->add( 'jquery-ui-widget', false, array( 'jquery-ui-core' ), '1.13.0-rc.2', 1 ); 808 808 809 // Strings for 'jquery-ui-autocomplete' live region messages.810 did_action( 'init' ) && $scripts->localize(811 'jquery-ui-autocomplete',812 'uiAutocompleteL10n',813 array(814 'noResults' => __( 'No results found.' ),815 /* translators: Number of results found when using jQuery UI Autocomplete. */816 'oneResult' => __( '1 result found. Use up and down arrow keys to navigate.' ),817 /* translators: %d: Number of results found when using jQuery UI Autocomplete. */818 'manyResults' => __( '%d results found. Use up and down arrow keys to navigate.' ),819 'itemSelected' => __( 'Item selected.' ),820 )821 );822 823 809 // Deprecated, not used in core, most functionality is included in jQuery 1.3. 824 810 $scripts->add( 'jquery-form', "/wp-includes/js/jquery/jquery.form$suffix.js", array( 'jquery' ), '4.3.0', 1 ); 825 811 … … 1110 1096 1111 1097 $scripts->add( 'admin-bar', "/wp-includes/js/admin-bar$suffix.js", array( 'hoverintent-js' ), false, 1 ); 1112 1098 1113 $scripts->add( 'wplink', "/wp-includes/js/wplink$suffix.js", array( 'jquery', 'wp-a11y' ), false, 1 );1099 $scripts->add( 'wplink', "/wp-includes/js/wplink$suffix.js", array( 'jquery', 'wp-a11y', 'wp-i18n' ), false, 1 ); 1114 1100 did_action( 'init' ) && $scripts->localize( 1115 1101 'wplink', 1116 1102 'wpLinkL10n', … … 1275 1261 $scripts->add( 'tags-box', "/wp-admin/js/tags-box$suffix.js", array( 'jquery', 'tags-suggest' ), false, 1 ); 1276 1262 $scripts->set_translations( 'tags-box' ); 1277 1263 1278 $scripts->add( 'tags-suggest', "/wp-admin/js/tags-suggest$suffix.js", array( 'jquery-ui-autocomplete', 'wp-a11y' ), false, 1 );1264 $scripts->add( 'tags-suggest', "/wp-admin/js/tags-suggest$suffix.js", array( 'jquery-ui-autocomplete', 'wp-a11y', 'wp-i18n' ), false, 1 ); 1279 1265 $scripts->set_translations( 'tags-suggest' ); 1280 1266 1281 1267 $scripts->add( 'post', "/wp-admin/js/post$suffix.js", array( 'suggest', 'wp-lists', 'postbox', 'tags-box', 'underscore', 'word-count', 'wp-a11y', 'wp-sanitize', 'clipboard' ), false, 1 );
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)