Changeset 55246 for trunk/src/wp-includes/blocks/post-comments-form.php
- Timestamp:
- 02/07/2023 07:01:56 AM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/blocks/post-comments-form.php
r54257 r55246 23 23 } 24 24 25 $classes = 'comment-respond'; // See comment further below.25 $classes = array( 'comment-respond' ); // See comment further below. 26 26 if ( isset( $attributes['textAlign'] ) ) { 27 $classes .= 'has-text-align-' . $attributes['textAlign'];27 $classes[] = 'has-text-align-' . $attributes['textAlign']; 28 28 } 29 30 $wrapper_attributes = get_block_wrapper_attributes( array( 'class' => $classes ) ); 29 if ( isset( $attributes['style']['elements']['link']['color']['text'] ) ) { 30 $classes[] = 'has-link-color'; 31 } 32 $wrapper_attributes = get_block_wrapper_attributes( array( 'class' => implode( ' ', $classes ) ) ); 31 33 32 34 add_filter( 'comment_form_defaults', 'post_comments_form_block_form_defaults' );
Note: See TracChangeset
for help on using the changeset viewer.