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

WordPress Trac noreply at wordpress.org
Fri Aug 28 12:32:51 UTC 2020


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

Comment (by omarreiss):

 Patch deprecates all properties on all removed globals. I use
 defineProperty now instead of __defineGetter__. If the global has been
 redefined by a plugin or theme, the properties will still throw a
 deprecation error, but will still be returned as redefined.

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


More information about the wp-trac mailing list