Changeset 54253
- Timestamp:
- 09/20/2022 01:47:55 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-theme-json.php
r54183 r54253 335 335 * and `typography`. 336 336 * @since 6.1.0 Added new side properties for `border`, 337 * added new property `shadow`, 337 338 * updated `blockGap` to be allowed at any level. 338 339 * @var array … … 357 358 'duotone' => null, 358 359 ), 360 'shadow' => null, 359 361 'spacing' => array( 360 362 'margin' => null, … … 585 587 $styles_non_top_level = static::VALID_STYLES; 586 588 foreach ( array_keys( $styles_non_top_level ) as $section ) { 587 foreach ( array_keys( $styles_non_top_level[ $section ] ) as $prop ) { 588 if ( 'top' === $styles_non_top_level[ $section ][ $prop ] ) { 589 unset( $styles_non_top_level[ $section ][ $prop ] ); 589 if ( array_key_exists( $section, $styles_non_top_level ) && is_array( $styles_non_top_level[ $section ] ) ) { 590 foreach ( array_keys( $styles_non_top_level[ $section ] ) as $prop ) { 591 if ( 'top' === $styles_non_top_level[ $section ][ $prop ] ) { 592 unset( $styles_non_top_level[ $section ][ $prop ] ); 593 } 590 594 } 591 595 }
Note: See TracChangeset
for help on using the changeset viewer.