[wp-trac] [WordPress Trac] #46089: Memory exhaustion when setting script translations on `wp-i18n`

WordPress Trac noreply at wordpress.org
Mon Apr 29 18:34:43 UTC 2019


#46089: Memory exhaustion when setting script translations on `wp-i18n`
-------------------------------------+-----------------------------
 Reporter:  aduth                    |       Owner:  (none)
     Type:  defect (bug)             |      Status:  new
 Priority:  normal                   |   Milestone:  Future Release
Component:  Script Loader            |     Version:
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-refresh  |     Focuses:
-------------------------------------+-----------------------------

Comment (by aduth):

 The last patch aligns to what was implemented with
 [https://github.com/WordPress/gutenberg/pull/12559 GB-1599]. There's still
 room for improvement:

 - The condition with `'wp-polyfill'` ought to really be testing any of the
 dependencies of `'wp-i18n'`
 - Generally speaking, I'm thinking this would be better served with an
 improvement to the lower-level resolution of circular dependencies of
 scripts, so as to avoid the possibility for this to occur for _any_ script
 enqueue, particularly since the error is quite cryptic (@iseulde had
 encountered a similar problem for a different script).

 To clarify, there's not a huge urgency to fix this, as best I can tell.
 But the snippet from the original comment is definitely not something one
 would expect to cause a memory exhaustion.

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


More information about the wp-trac mailing list