-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
escape attributes in default form content using esc_attr instead of e…
…sc_html
- Loading branch information
1 parent
5709b12
commit 3df4be9
Showing
1 changed file
with
4 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
<?php | ||
|
||
$email_label = esc_html__('Email address', 'mailchimp-for-wp'); | ||
$email_placeholder = esc_html__('Your email address', 'mailchimp-for-wp'); | ||
$signup_button = esc_html__('Sign up', 'mailchimp-for-wp'); | ||
$email_placeholder_attr = esc_attr__('Your email address', 'mailchimp-for-wp'); | ||
$signup_button_value = esc_attr__('Sign up', 'mailchimp-for-wp'); | ||
|
||
$content = "<p>\n\t<label>{$email_label}: \n"; | ||
$content .= "\t\t<input type=\"email\" name=\"EMAIL\" placeholder=\"{$email_placeholder}\" required />\n</label>\n</p>\n\n"; | ||
$content .= "<p>\n\t<input type=\"submit\" value=\"{$signup_button}\" />\n</p>"; | ||
$content .= "\t\t<input type=\"email\" name=\"EMAIL\" placeholder=\"{$email_placeholder_attr}\" required />\n</label>\n</p>\n\n"; | ||
$content .= "<p>\n\t<input type=\"submit\" value=\"{$signup_button_value}\" />\n</p>"; | ||
|
||
return $content; |