Skip to content

Commit 04ea827

Browse files
lezamasimison
authored andcommitted
Refactor render_submit_button to improve clarity
1 parent 88a65ae commit 04ea827

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

projects/packages/forms/src/blocks/contact-form/class-contact-form-block.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ public static function render_wrapped_html_block( $content, $parsed_block ) {
113113
public static function render_submit_button( $content, $parsed_block ) {
114114
$class = $parsed_block['attrs']['className'] ?? '';
115115
if ( ! str_contains( $class, 'jetpack-form-submit-button' ) ) {
116-
return $content; // Not our submit button.
116+
return $content;
117117
}
118118

119119
if ( ! class_exists( '\WP_HTML_Tag_Processor' ) ) {

0 commit comments

Comments
 (0)