Ticket #48244: 48244.2022022000.patch
| File 48244.2022022000.patch, 6.0 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 6.0.0, needed for back-compatibility. 358 * 359 * @since 4.5.0 360 * @deprecated 6.0.0 361 */ 362 window.uiAutocompleteL10n = window.uiAutocompleteL10n || { 363 noResults: '', 364 oneResult: '', 365 manyResults: '', 366 itemSelected: '' 367 }; 368 369 window.uiAutocompleteL10n = deprecateL10nObject( 'uiAutocompleteL10n', window.uiAutocompleteL10n, '6.0.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
815 815 $scripts->add( 'jquery-ui-position', false, array( 'jquery-ui-core' ), '1.13.1', 1 ); 816 816 $scripts->add( 'jquery-ui-widget', false, array( 'jquery-ui-core' ), '1.13.1', 1 ); 817 817 818 // Strings for 'jquery-ui-autocomplete' live region messages.819 did_action( 'init' ) && $scripts->localize(820 'jquery-ui-autocomplete',821 'uiAutocompleteL10n',822 array(823 'noResults' => __( 'No results found.' ),824 /* translators: Number of results found when using jQuery UI Autocomplete. */825 'oneResult' => __( '1 result found. Use up and down arrow keys to navigate.' ),826 /* translators: %d: Number of results found when using jQuery UI Autocomplete. */827 'manyResults' => __( '%d results found. Use up and down arrow keys to navigate.' ),828 'itemSelected' => __( 'Item selected.' ),829 )830 );831 832 818 // Deprecated, not used in core, most functionality is included in jQuery 1.3. 833 819 $scripts->add( 'jquery-form', "/wp-includes/js/jquery/jquery.form$suffix.js", array( 'jquery' ), '4.3.0', 1 ); 834 820 … … 1119 1105 1120 1106 $scripts->add( 'admin-bar', "/wp-includes/js/admin-bar$suffix.js", array( 'hoverintent-js' ), false, 1 ); 1121 1107 1122 $scripts->add( 'wplink', "/wp-includes/js/wplink$suffix.js", array( 'jquery', 'wp-a11y' ), false, 1 ); 1108 $scripts->add( 'wplink', "/wp-includes/js/wplink$suffix.js", array( 'common', 'jquery', 'wp-a11y' ), false, 1 ); 1109 $scripts->set_translations( 'wplink' ); 1123 1110 did_action( 'init' ) && $scripts->localize( 1124 1111 'wplink', 1125 1112 'wpLinkL10n', … … 1284 1271 $scripts->add( 'tags-box', "/wp-admin/js/tags-box$suffix.js", array( 'jquery', 'tags-suggest' ), false, 1 ); 1285 1272 $scripts->set_translations( 'tags-box' ); 1286 1273 1287 $scripts->add( 'tags-suggest', "/wp-admin/js/tags-suggest$suffix.js", array( ' jquery-ui-autocomplete', 'wp-a11y' ), false, 1 );1274 $scripts->add( 'tags-suggest', "/wp-admin/js/tags-suggest$suffix.js", array( 'common', 'jquery-ui-autocomplete', 'wp-a11y' ), false, 1 ); 1288 1275 $scripts->set_translations( 'tags-suggest' ); 1289 1276 1290 1277 $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)