[wp-trac] [WordPress Trac] #48244: script-loader.php Need to use _n() when more than one results are found

WordPress Trac noreply at wordpress.org
Mon Sep 13 08:05:38 UTC 2021


#48244: script-loader.php Need to use _n() when more than one results are found
--------------------------------------+------------------------------
 Reporter:  tobifjellner              |       Owner:  (none)
     Type:  defect (bug)              |      Status:  new
 Priority:  normal                    |   Milestone:  Awaiting Review
Component:  Editor                    |     Version:  4.5
 Severity:  normal                    |  Resolution:
 Keywords:  good-first-bug has-patch  |     Focuses:  javascript
--------------------------------------+------------------------------

Comment (by swissspidy):

 Thanks for the patch. Two things I noticed at first glance:

 * `uiAutocompleteL10n` definition needs to be removed in `script-
 loader.php`
 * `window.uiAutocompleteL10n` needs to be deprecated using
 `deprecateL10nObject`

 See r48925 for an example of how  that deprecation works.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/48244#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list