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

WordPress Trac noreply at wordpress.org
Wed Jun 21 15:23:00 UTC 2023


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

 * keywords:  has-patch has-unit-tests => has-patch has-unit-tests changes-
     requested


Comment:

 This ticket was discussed in the recent performance bug scrub.

 There is some feedback on the PR that needs to be addressed.

 Props to @spacedmonkey

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


More information about the wp-trac mailing list