Ticket #48244: 48244.2021091100.patch
| File 48244.2021091100.patch, 4.0 KB (added by , 5 years ago) |
|---|
-
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 return sprintf( _n( '%d result found. Use up and down arrow keys to navigate.', 143 '%d results found. Use up and down arrow keys to navigate.', 144 number ), 145 number ); 148 146 } 149 147 } 150 148 }, 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 return sprintf( _n( '%d result found. Use up and down arrow keys to navigate.', 466 '%d results found. Use up and down arrow keys to navigate.', 467 number ), 468 number ); 469 469 } 470 470 } 471 471 } ).autocomplete( 'instance' )._renderItem = function( ul, item ) { -
src/wp-includes/script-loader.php
1110 1110 1111 1111 $scripts->add( 'admin-bar', "/wp-includes/js/admin-bar$suffix.js", array( 'hoverintent-js' ), false, 1 ); 1112 1112 1113 $scripts->add( 'wplink', "/wp-includes/js/wplink$suffix.js", array( 'jquery', 'wp-a11y' ), false, 1 );1113 $scripts->add( 'wplink', "/wp-includes/js/wplink$suffix.js", array( 'jquery', 'wp-a11y', 'wp-i18n' ), false, 1 ); 1114 1114 did_action( 'init' ) && $scripts->localize( 1115 1115 'wplink', 1116 1116 'wpLinkL10n', … … 1275 1275 $scripts->add( 'tags-box', "/wp-admin/js/tags-box$suffix.js", array( 'jquery', 'tags-suggest' ), false, 1 ); 1276 1276 $scripts->set_translations( 'tags-box' ); 1277 1277 1278 $scripts->add( 'tags-suggest', "/wp-admin/js/tags-suggest$suffix.js", array( 'jquery-ui-autocomplete', 'wp-a11y' ), false, 1 );1278 $scripts->add( 'tags-suggest', "/wp-admin/js/tags-suggest$suffix.js", array( 'jquery-ui-autocomplete', 'wp-a11y', 'wp-i18n' ), false, 1 ); 1279 1279 $scripts->set_translations( 'tags-suggest' ); 1280 1280 1281 1281 $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)