[wp-trac] [WordPress Trac] #58323: Use static closures whenever $this is not used to avoid memory leaks

WordPress Trac noreply at wordpress.org
Mon Jun 26 16:58:53 UTC 2023


#58323: Use static closures whenever $this is not used to avoid memory leaks
-------------------------------------+-------------------------------------
 Reporter:  westonruter              |       Owner:  westonruter
     Type:  enhancement              |      Status:  closed
 Priority:  normal                   |   Milestone:  6.3
Component:  General                  |     Version:
 Severity:  normal                   |  Resolution:  fixed
 Keywords:  has-patch has-unit-      |     Focuses:  performance, coding-
  tests changes-requested            |  standards
-------------------------------------+-------------------------------------
Changes (by westonruter):

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


Comment:

 In [changeset:"56038" 56038]:
 {{{
 #!CommitTicketReference repository="" revision="56038"
 Editor: Use static closures to avoid memory leaks.

 Backports Gutenberg changes from
 https://github.com/WordPress/gutenberg/pull/50723.

 Amends [55822].

 Fixes #58323.
 Props westonruter, spacedmonkey, flixos90.
 }}}

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


More information about the wp-trac mailing list