Make WordPress Core


Ignore:
Timestamp:
05/17/2023 10:44:21 PM (3 years ago)
Author:
westonruter
Message:

General: Use static on closures whenever $this is not used to avoid memory leaks.

Props westonruter, jrf, spacedmonkey.
Fixes #58323.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/kses.php

    r55564 r55822  
    19241924
    19251925        return array_map(
    1926             function ( $datum ) {
     1926            static function ( $datum ) {
    19271927                $datum[] = array(
    19281928                    'p' => array(
Note: See TracChangeset for help on using the changeset viewer.