[wp-trac] [WordPress Trac] #51123: commonL10n and other JS globals removed without backwards compatibility

WordPress Trac noreply at wordpress.org
Mon Aug 31 20:28:56 UTC 2020


#51123: commonL10n and other JS globals removed without backwards compatibility
---------------------------------------------+-------------------------
 Reporter:  kbjohnson90                      |       Owner:  ocean90
     Type:  defect (bug)                     |      Status:  closed
 Priority:  normal                           |   Milestone:  5.5.1
Component:  Script Loader                    |     Version:  5.5
 Severity:  normal                           |  Resolution:  fixed
 Keywords:  needs-dev-note has-patch commit  |     Focuses:  javascript
---------------------------------------------+-------------------------
Changes (by SergeyBiryukov):

 * status:  reviewing => closed
 * resolution:   => fixed


Comment:

 In [changeset:"48923" 48923]:
 {{{
 #!CommitTicketReference repository="" revision="48923"
 Script Loader: Add backward compatibility for JavaScript i18n globals and
 properties deprecated in WordPress 5.5.

 The recommended approach for any plugins using these globals or properties
 is to switch to the newer `wp.i18n` functions.

 In the meantime, this ensures that accessing any of these globals does not
 break the rest of the code on the page, and an appropriate warning message
 is logged to the JavaScript console.

 Follow-up to:
 https://core.trac.wordpress.org/query?summary=~wp.i18n&milestone=5.5

 Props omarreiss, peterwilsoncc, kbjohnson90, johnbillion,
 TimothyBlynJacobs, joostdevalk, ocean90, desrosj, SergeyBiryukov.
 Fixes #51123.
 }}}

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


More information about the wp-trac mailing list