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

WordPress Trac noreply at wordpress.org
Wed May 17 23:04:48 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 commit  |     Focuses:  performance, coding-standards
------------------------------+--------------------------------------------

Comment (by westonruter):

 Also opened a [https://github.com/WordPress/gutenberg/pull/50723 PR for
 Gutenberg] to apply the same change.

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


More information about the wp-trac mailing list