Changeset 55246 for trunk/src/wp-includes/blocks/site-title.php
- Timestamp:
- 02/07/2023 07:01:56 AM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/blocks/site-title.php
r54257 r55246 19 19 } 20 20 21 $tag_name = 'h1'; 22 $align_class_name = empty( $attributes['textAlign'] ) ? '' : "has-text-align-{$attributes['textAlign']}"; 21 $tag_name = 'h1'; 22 $classes = empty( $attributes['textAlign'] ) ? '' : "has-text-align-{$attributes['textAlign']}"; 23 if ( isset( $attributes['style']['elements']['link']['color']['text'] ) ) { 24 $classes .= ' has-link-color'; 25 } 23 26 24 27 if ( isset( $attributes['level'] ) ) { … … 38 41 ); 39 42 } 40 $wrapper_attributes = get_block_wrapper_attributes( array( 'class' => $align_class_name) );43 $wrapper_attributes = get_block_wrapper_attributes( array( 'class' => trim( $classes ) ) ); 41 44 42 45 return sprintf(
Note: See TracChangeset
for help on using the changeset viewer.