Changeset 55246 for trunk/src/wp-includes/blocks/term-description.php
- Timestamp:
- 02/07/2023 07:01:56 AM (4 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/blocks/term-description.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/blocks/term-description.php
r52069 r55246 24 24 } 25 25 26 $extra_attributes = ( isset( $attributes['textAlign'] ) ) 27 ? array( 'class' => 'has-text-align-' . $attributes['textAlign'] ) 28 : array(); 29 $wrapper_attributes = get_block_wrapper_attributes( $extra_attributes ); 26 $classes = array(); 27 if ( isset( $attributes['textAlign'] ) ) { 28 $classes[] = 'has-text-align-' . $attributes['textAlign']; 29 } 30 if ( isset( $attributes['style']['elements']['link']['color']['text'] ) ) { 31 $classes[] = 'has-link-color'; 32 } 33 $wrapper_attributes = get_block_wrapper_attributes( array( 'class' => implode( ' ', $classes ) ) ); 30 34 31 35 return '<div ' . $wrapper_attributes . '>' . $term_description . '</div>';
Note:
See TracChangeset
for help on using the changeset viewer.