Changeset 61430 for trunk/src/wp-includes/block-supports/elements.php
- Timestamp:
- 01/05/2026 04:50:51 AM (6 months ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/block-supports/elements.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/block-supports/elements.php
r61270 r61430 37 37 $element_color_properties = array( 38 38 'button' => array( 39 'skip' => isset( $options['button']['skip'] ) ? $options['button']['skip'] :false,39 'skip' => $options['button']['skip'] ?? false, 40 40 'paths' => array( 41 41 array( 'button', 'color', 'text' ), … … 45 45 ), 46 46 'link' => array( 47 'skip' => isset( $options['link']['skip'] ) ? $options['link']['skip'] :false,47 'skip' => $options['link']['skip'] ?? false, 48 48 'paths' => array( 49 49 array( 'link', 'color', 'text' ), … … 52 52 ), 53 53 'heading' => array( 54 'skip' => isset( $options['heading']['skip'] ) ? $options['heading']['skip'] :false,54 'skip' => $options['heading']['skip'] ?? false, 55 55 'paths' => array( 56 56 array( 'heading', 'color', 'text' ), … … 131 131 132 132 $block_type = WP_Block_Type_Registry::get_instance()->get_registered( $parsed_block['blockName'] ); 133 $element_block_styles = isset( $parsed_block['attrs']['style']['elements'] ) ? $parsed_block['attrs']['style']['elements'] :null;133 $element_block_styles = $parsed_block['attrs']['style']['elements'] ?? null; 134 134 135 135 if ( ! $element_block_styles ) { … … 186 186 } 187 187 188 $element_style_object = isset( $element_block_styles[ $element_type ] ) ? $element_block_styles[ $element_type ] :null;188 $element_style_object = $element_block_styles[ $element_type ] ?? null; 189 189 190 190 // Process primary element type styles. … … 212 212 if ( isset( $element_config['elements'] ) ) { 213 213 foreach ( $element_config['elements'] as $element ) { 214 $element_style_object = isset( $element_block_styles[ $element ] ) 215 ? $element_block_styles[ $element ] 216 : null; 214 $element_style_object = $element_block_styles[ $element ] ?? null; 217 215 218 216 if ( $element_style_object ) {
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)