Changeset 55246 for trunk/src/wp-includes/blocks/comment-author-name.php
- Timestamp:
- 02/07/2023 07:01:56 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/blocks/comment-author-name.php
r54483 r55246 26 26 } 27 27 28 $classes = '';28 $classes = array(); 29 29 if ( isset( $attributes['textAlign'] ) ) { 30 $classes .= 'has-text-align-' . $attributes['textAlign']; 30 $classes[] = 'has-text-align-' . $attributes['textAlign']; 31 } 32 if ( isset( $attributes['style']['elements']['link']['color']['text'] ) ) { 33 $classes[] = 'has-link-color'; 31 34 } 32 35 33 $wrapper_attributes = get_block_wrapper_attributes( array( 'class' => $classes) );36 $wrapper_attributes = get_block_wrapper_attributes( array( 'class' => implode( ' ', $classes ) ) ); 34 37 $comment_author = get_comment_author( $comment ); 35 38 $link = get_comment_author_url( $comment );
Note: See TracChangeset
for help on using the changeset viewer.