From cbcc27be9efaa435596abba43b00698f9cd5591f Mon Sep 17 00:00:00 2001 From: Joe Dolson Date: Thu, 2 Dec 2021 16:23:17 -0600 Subject: [PATCH] More piddling changes --- src/wp-accessibility-settings.php | 18 +++++++++--------- src/wp-accessibility-toolbar.php | 12 ++++++------ 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/src/wp-accessibility-settings.php b/src/wp-accessibility-settings.php index 656b0d9..474aa62 100644 --- a/src/wp-accessibility-settings.php +++ b/src/wp-accessibility-settings.php @@ -253,7 +253,7 @@ function wpa_admin_settings() {

-

+

-

+

-
+
  • /> @@ -408,8 +408,8 @@ function wpa_admin_settings() {

- - + +

@@ -431,8 +431,8 @@ function wpa_admin_settings() {

- - + +

@@ -501,8 +501,8 @@ function wpa_admin_settings() {

- - + +

diff --git a/src/wp-accessibility-toolbar.php b/src/wp-accessibility-toolbar.php index d29e409..0aee162 100644 --- a/src/wp-accessibility-toolbar.php +++ b/src/wp-accessibility-toolbar.php @@ -110,9 +110,9 @@ function wpa_toolbar_shortcode( $atts, $content ) { * @return string HTML. */ function wpa_toolbar_html( $type = 'widget', $control = 'button' ) { - $contrast = __( 'Toggle High Contrast', 'wp-accessibility' ); - $grayscale = __( 'Toggle Grayscale', 'wp-accessibility' ); - $fontsize = __( 'Toggle Font size', 'wp-accessibility' ); + $contrast = esc_html__( 'Toggle High Contrast', 'wp-accessibility' ); + $grayscale = esc_html__( 'Toggle Grayscale', 'wp-accessibility' ); + $fontsize = esc_html__( 'Toggle Font size', 'wp-accessibility' ); $enable_grayscale = ( 'on' === get_option( 'wpa_toolbar_gs' ) && current_user_can( 'manage_options' ) ) ? true : false; $enable_contrast = ( 'off' === get_option( 'wpa_toolbar_ct' ) ) ? false : true; $enable_fontsize = ( 'off' === get_option( 'wpa_toolbar_fs' ) ) ? false : true; @@ -153,9 +153,9 @@ function wpa_toolbar_js() { $is_right = ( 'on' === get_option( 'wpa_toolbar_right' ) ) ? 'right' : 'left'; $responsive = ( 'on' === get_option( 'wpa_toolbar_mobile' ) ) ? 'a11y-responsive' : 'a11y-non-responsive'; - $contrast = __( 'Toggle High Contrast', 'wp-accessibility' ); - $grayscale = __( 'Toggle Grayscale', 'wp-accessibility' ); - $fontsize = __( 'Toggle Font size', 'wp-accessibility' ); + $contrast = esc_html__( 'Toggle High Contrast', 'wp-accessibility' ); + $grayscale = esc_html__( 'Toggle Grayscale', 'wp-accessibility' ); + $fontsize = esc_html__( 'Toggle Font size', 'wp-accessibility' ); $enable_grayscale = ( 'on' === get_option( 'wpa_toolbar_gs' ) && current_user_can( 'manage_options' ) ) ? 'true' : 'false'; $enable_fontsize = ( 'off' === get_option( 'wpa_toolbar_fs' ) ) ? 'false' : 'true'; $enable_contrast = ( 'off' === get_option( 'wpa_toolbar_ct' ) ) ? 'false' : 'true';