Skip to content

Commit

Permalink
Fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
oandregal authored and youknowriad committed Dec 27, 2021
1 parent bd764a9 commit 58c63eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/compat/wordpress-5.9/class-wp-theme-json-gutenberg.php
Original file line number Diff line number Diff line change
Expand Up @@ -431,8 +431,8 @@ private static function sanitize( $input, $valid_block_names, $valid_element_nam
// Some styles are only meant to be available at the top-level (e.g.: blockGap),
// hence, the schema for blocks & elements should not have them.
$styles_non_top_level = self::VALID_STYLES;
foreach( array_keys( $styles_non_top_level ) as $section ) {
foreach( array_keys( $styles_non_top_level[ $section ] ) as $prop ) {
foreach ( array_keys( $styles_non_top_level ) as $section ) {
foreach ( array_keys( $styles_non_top_level[ $section ] ) as $prop ) {
if ( 'top' === $styles_non_top_level[ $section ][ $prop ] ) {
unset( $styles_non_top_level[ $section ][ $prop ] );
}
Expand Down

0 comments on commit 58c63eb

Please sign in to comment.