Changeset 52364 for trunk/src/wp-includes/blocks/post-comments.php
- Timestamp:
- 12/14/2021 01:55:28 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/blocks/post-comments.php
r52069 r52364 67 67 } 68 68 add_action( 'init', 'register_block_core_post_comments' ); 69 70 /** 71 * Use the button block classes for the form-submit button. 72 * 73 * @param array $fields The default comment form arguments. 74 * 75 * @return array Returns the modified fields. 76 */ 77 function post_comments_block_form_defaults( $fields ) { 78 if ( wp_is_block_theme() ) { 79 $fields['submit_button'] = '<input name="%1$s" type="submit" id="%2$s" class="%3$s wp-block-button__link" value="%4$s" />'; 80 $fields['submit_field'] = '<p class="form-submit wp-block-button">%1$s %2$s</p>'; 81 } 82 83 return $fields; 84 } 85 add_filter( 'comment_form_defaults', 'post_comments_block_form_defaults' );
Note: See TracChangeset
for help on using the changeset viewer.