Skip to content

Commit

Permalink
Update: Unset variable set by reference after a foreach loop. (#55261)
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgefilipecosta authored Oct 11, 2023
1 parent bc47191 commit bab057e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/class-wp-theme-json-gutenberg.php
Original file line number Diff line number Diff line change
Expand Up @@ -1065,6 +1065,7 @@ public function get_stylesheet( $types = array( 'variables', 'styles', 'presets'
foreach ( $style_nodes as &$node ) {
$node['selector'] = static::scope_selector( $options['scope'], $node['selector'] );
}
unset( $node );
}

if ( ! empty( $options['root_selector'] ) ) {
Expand Down

0 comments on commit bab057e

Please sign in to comment.