From 5214192ef02601c96c7c47e8c17b0c7f34c6a474 Mon Sep 17 00:00:00 2001 From: Takayuki Miyoshi Date: Sat, 2 Nov 2024 12:58:36 +0900 Subject: [PATCH] Add title attribute to close button --- admin/includes/tag-generator.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/admin/includes/tag-generator.php b/admin/includes/tag-generator.php index f78de678..5d61ba85 100644 --- a/admin/includes/tag-generator.php +++ b/admin/includes/tag-generator.php @@ -112,7 +112,12 @@ public function print_panels( WPCF7_ContactForm $contact_form ) { ); echo "\n"; echo sprintf( - '', + '', + wpcf7_format_atts( array( + 'class' => 'close-button', + 'title' => __( 'Close this dialog box', 'contact-form-7' ), + 'data-taggen' => 'close-dialog', + ) ), esc_html( __( 'Close', 'contact-form-7' ) ) ); echo "\n";