Skip to content

Commit

Permalink
Merge pull request #1501 from rocklobster-in/dev/6.0
Browse files Browse the repository at this point in the history
Add title attribute to close button
  • Loading branch information
takayukister authored Nov 2, 2024
2 parents 57b92e4 + 5214192 commit 788dac5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion admin/includes/tag-generator.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,12 @@ public function print_panels( WPCF7_ContactForm $contact_form ) {
);
echo "\n";
echo sprintf(
'<button class="close-button" data-taggen="close-dialog">%s</button>',
'<button %1$s>%2$s</button>',
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";
Expand Down

0 comments on commit 788dac5

Please sign in to comment.