Skip to content

Commit f22bfd3

Browse files
committed
Update wp-accessibility.php
1 parent e9a2d05 commit f22bfd3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/wp-accessibility.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -781,7 +781,7 @@ function wpa_get_support_form() {
781781
if ( ! wp_verify_nonce( $nonce, 'wpa-nonce' ) ) {
782782
wp_die( 'WP Accessibility: Security check failed' );
783783
}
784-
$request = ( ! empty( $_POST['support_request'] ) ) ? sanitize_textarea_field( stripslashes( $_POST['support_request'] ) ) : false;
784+
$request = ( ! empty( $_POST['support_request'] ) ) ? sanitize_textarea_field( wp_unslash( $_POST['support_request'] ) ) : false;
785785
$has_donated = ( 'on' === $_POST['has_donated'] ) ? 'Donor' : 'No donation';
786786
$subject = "WP Accessibility support request. $has_donated";
787787
$message = $request . "\n\n" . $data;
@@ -794,13 +794,13 @@ function wpa_get_support_form() {
794794
$from = "From: $current_user->display_name <$from_email>\r\nReply-to: $current_user->display_name <$current_user->user_email>\r\n";
795795

796796
if ( ! $request ) {
797-
echo "<div class='message error'><p>" . __( 'Please describe your problem.', 'wp-accessibility' ) . '</p></div>';
797+
echo "<div class='message error'><p>" . esc_html__( 'Please describe your problem.', 'wp-accessibility' ) . '</p></div>';
798798
} else {
799799
wp_mail( '[email protected]', $subject, $message, $from );
800800
if ( 'Donor' === $has_donated ) {
801-
echo "<div class='message updated'><p>" . __( 'Thank you for supporting the continuing development of this plug-in! I\'ll get back to you as soon as I can.', 'wp-accessibility' ) . '</p></div>';
801+
echo "<div class='message updated'><p>" . esc_html__( 'Thank you for supporting the continuing development of this plug-in! I\'ll get back to you as soon as I can.', 'wp-accessibility' ) . '</p></div>';
802802
} else {
803-
echo "<div class='message updated'><p>" . __( 'I cannot provide support, but will treat your request as a bug report, and will incorporate any permanent solutions I discover into the plug-in.', 'wp-accessibility' ) . '</p></div>';
803+
echo "<div class='message updated'><p>" . esc_html__( 'I cannot provide support, but will treat your request as a bug report, and will incorporate any permanent solutions I discover into the plug-in.', 'wp-accessibility' ) . '</p></div>';
804804
}
805805
}
806806
}

0 commit comments

Comments
 (0)