[wp-trac] [WordPress Trac] #51317: Remove deprecated JavaScript i18n globals

WordPress Trac noreply at wordpress.org
Thu Apr 8 20:22:40 UTC 2021


#51317: Remove deprecated JavaScript i18n globals
-------------------------------+-------------------------
 Reporter:  SergeyBiryukov     |       Owner:  (none)
     Type:  enhancement        |      Status:  new
 Priority:  normal             |   Milestone:  5.8
Component:  Script Loader      |     Version:  5.5.1
 Severity:  normal             |  Resolution:
 Keywords:  early needs-patch  |     Focuses:  javascript
-------------------------------+-------------------------
Changes (by desrosj):

 * keywords:  early => early needs-patch


Comment:

 Are there any negative aspects of leaving `deprecateL10nObject` in the
 code base?

 I don't think it's a unreasonable to assume that some plugins and themes
 are still referencing the old variables. From a user perspective, if that
 is the case and `deprecateL10nObject` is removed, JavaScript will break
 and they will experience the same thing as in 5.5.

 That said, I'm not entirely against removing this, but I'm just not
 convinced it's necessary yet without understanding why it's important to
 rip the bandaid off.

 Some other thoughts:
 - If FSE is merged in 5.8, it may make sense to wait another release for
 this change in order to limit introducing potential issues.
 - If it's decided to make this change in 5.8, this should be made in the
 next week, and a dev note should be published as soon as possible so that
 plugin and theme developers have time to check their code.

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


More information about the wp-trac mailing list