Changeset 56709 for trunk/src/wp-includes/block-supports/elements.php
- Timestamp:
- 09/26/2023 01:45:23 PM (2 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/block-supports/elements.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/block-supports/elements.php
r56680 r56709 176 176 } 177 177 178 $element_style_object = _wp_array_get( $element_block_styles, array( $element_type ), null );178 $element_style_object = isset( $element_block_styles[ $element_type ] ) ? $element_block_styles[ $element_type ] : null; 179 179 180 180 // Process primary element type styles. … … 202 202 if ( isset( $element_config['elements'] ) ) { 203 203 foreach ( $element_config['elements'] as $element ) { 204 $element_style_object = _wp_array_get( $element_block_styles, array( $element ), null ); 204 $element_style_object = isset( $element_block_styles[ $element ] ) 205 ? $element_block_styles[ $element ] 206 : null; 205 207 206 208 if ( $element_style_object ) {
Note: See TracChangeset
for help on using the changeset viewer.