Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Refactor render_submit_button to improve clarity
  • Loading branch information
lezama authored and CGastrell committed Nov 28, 2025
commit 00d63f934ef239a8b4bfff211d18b978d2c827bd
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ public static function render_wrapped_html_block( $content, $parsed_block ) {
public static function render_submit_button( $content, $parsed_block ) {
$class = $parsed_block['attrs']['className'] ?? '';
if ( ! str_contains( $class, 'jetpack-form-submit-button' ) ) {
return $content; // Not our submit button.
return $content;
}

if ( ! class_exists( '\WP_HTML_Tag_Processor' ) ) {
Expand Down