Make WordPress Core

Ticket #48244: 48244.4.patch

File 48244.4.patch, 1.8 KB (added by shaharia.azam, 7 years ago)

It's for 4.5 . Both plugin.js and script-loader.php has been updated

  • src/wp-includes/js/tinymce/plugins/wplink/plugin.js

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
     
    417417                                                        noResults: ( typeof window.uiAutocompleteL10n !== 'undefined' ) ? window.uiAutocompleteL10n.noResults : '',
    418418                                                        results: function( number ) {
    419419                                                                if ( typeof window.uiAutocompleteL10n !== 'undefined' ) {
    420                                                                         if ( number > 1 ) {
    421                                                                                 return window.uiAutocompleteL10n.manyResults.replace( '%d', number );
    422                                                                         }
    423 
    424                                                                         return window.uiAutocompleteL10n.oneResult;
     420                                                                        return window.uiAutocompleteL10n.manyResults;
    425421                                                                }
    426422                                                        }
    427423                                                }
  • src/wp-includes/script-loader.php

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
     
    228228        did_action( 'init' ) && $scripts->localize( 'jquery-ui-autocomplete', 'uiAutocompleteL10n', array(
    229229                'noResults' => __( 'No search results.' ),
    230230                /* translators: Number of results found when using jQuery UI Autocomplete */
    231                 'oneResult' => __( '1 result found. Use up and down arrow keys to navigate.' ),
    232                 'manyResults' => __( '%d results found. Use up and down arrow keys to navigate.' ),
     231                'manyResults' => _n( '%d result found. Use up and down arrow keys to navigate.', '%d results found. Use up and down arrow keys to navigate.', did_action( 'init' ) ),
    233232        ) );
    234233
    235234        // deprecated, not used in core, most functionality is included in jQuery 1.3