Make WordPress Core


Ignore:
Timestamp:
06/26/2023 04:58:38 PM (17 months ago)
Author:
westonruter
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/global-styles-and-settings.php

    r55988 r56038  
    371371                array_filter(
    372372                    $metadata['path'],
    373                     function ( $item ) {
     373                    static function ( $item ) {
    374374                        if ( str_contains( $item, 'core/' ) ) {
    375375                            return true;
Note: See TracChangeset for help on using the changeset viewer.