WP Accessibility - Version 1.5.9

Version Description

  • Bug fix: another swapped options check, elsewhere. Sigh.
Download this release

Release Info

Developer joedolson
Plugin Icon 128x128 WP Accessibility
Version 1.5.9
Comparing to
See all releases

Code changes from version 1.5.8 to 1.5.9

readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://www.joedolson.com/donate/
4
Tags: title, accessibility, accessible, navigation, wcag, a11y, section508, focus, alt text, labels, aria
5
Requires at least: 3.4.2
6
Tested up to: 4.7
7
- Stable tag: 1.5.7
8
Text Domain: wp-accessibility
9
License: GPLv2 or later
10
@@ -60,6 +60,10 @@ Translating my plug-ins is always appreciated. Visit <a href="https://translate.
60
61
[Suggest a change!](https://github.com/joedolson/wp-accessibility/)
62
63
= 1.5.8 =
64
65
* Bug fix: swapped options check for fontsize & contrast toggles
4
Tags: title, accessibility, accessible, navigation, wcag, a11y, section508, focus, alt text, labels, aria
5
Requires at least: 3.4.2
6
Tested up to: 4.7
7
+ Stable tag: 1.5.8
8
Text Domain: wp-accessibility
9
License: GPLv2 or later
10
60
61
[Suggest a change!](https://github.com/joedolson/wp-accessibility/)
62
63
+ = 1.5.9 =
64
+
65
+ * Bug fix: another swapped options check, elsewhere. Sigh.
66
+
67
= 1.5.8 =
68
69
* Bug fix: swapped options check for fontsize & contrast toggles
wp-accessibility-settings.php CHANGED
@@ -229,7 +229,7 @@ function wpa_admin_menu() {
229
for="wpa_toolbar_fs"><?php _e( 'Exclude font size toggle from Accessibility toolbar', 'wp-accessibility' ); ?></label>
230
</li>
231
<li><input type="checkbox" id="wpa_toolbar_ct"
232
- name="wpa_toolbar_ct" <?php if ( get_option( 'wpa_toolbar_ct' ) == "on" ) {
233
echo 'checked="checked" ';
234
} ?>/> <label
235
for="wpa_toolbar_ct"><?php _e( 'Exclude contrast toggle from Accessibility toolbar', 'wp-accessibility' ); ?></label>
229
for="wpa_toolbar_fs"><?php _e( 'Exclude font size toggle from Accessibility toolbar', 'wp-accessibility' ); ?></label>
230
</li>
231
<li><input type="checkbox" id="wpa_toolbar_ct"
232
+ name="wpa_toolbar_ct" <?php if ( get_option( 'wpa_toolbar_ct' ) == "off" ) {
233
echo 'checked="checked" ';
234
} ?>/> <label
235
for="wpa_toolbar_ct"><?php _e( 'Exclude contrast toggle from Accessibility toolbar', 'wp-accessibility' ); ?></label>
wp-accessibility.php CHANGED
@@ -3,7 +3,7 @@
3
Plugin Name: WP Accessibility
4
Plugin URI: http://www.joedolson.com/wp-accessibility/
5
Description: Helps improve accessibility in your WordPress site, like removing title attributes.
6
- Version: 1.5.8
7
Author: Joe Dolson
8
Text Domain: wp-accessibility
9
Domain Path: /lang
@@ -44,7 +44,7 @@ function add_wpa_admin_menu() {
44
45
// ACTIVATION
46
function wpa_install() {
47
- $wpa_version = '1.5.8';
48
if ( get_option( 'wpa_installed' ) != 'true' ) {
49
add_option( 'rta_from_nav_menu', 'on' );
50
add_option( 'rta_from_page_lists', 'on' );
@@ -244,7 +244,7 @@ function wpa_toolbar_html() {
244
$fontsize = __( 'Toggle Font size', 'wp-accessibility' );
245
$enable_grayscale = ( get_option( 'wpa_toolbar_gs' ) == 'on' ) ? true : false;
246
$enable_contrast = ( get_option( 'wpa_toolbar_ct' ) == 'off' ) ? false : true;
247
- $enable_fontsize = ( get_option( 'wpa_toolbar_fs' ) == 'off' ) ? false : true;
248
$responsive = ( get_option( 'wpa_toolbar_mobile' ) == 'on' ) ? 'a11y-responsive ' : '';
249
$toolbar = '
250
<!-- a11y toolbar widget -->
@@ -287,13 +287,13 @@ function wpa_toolbar_js() {
287
var insert_a11y_toolbar = '<!-- a11y toolbar -->';
288
insert_a11y_toolbar += '<div class=\"$responsive a11y-toolbar$is_rtl$is_right\">';
289
insert_a11y_toolbar += '<ul class=\"a11y-toolbar-list\">';";
290
- if ( get_option( 'wpa_toolbar' ) == 'on' && $enable_fontsize ) {
291
echo "insert_a11y_toolbar += '<li class=\"a11y-toolbar-list-item\"><button type=\"button\" class=\"a11y-toggle-contrast toggle-contrast\" id=\"is_normal_contrast\" aria-pressed=\"false\"><span class=\"offscreen\">$contrast</span><span class=\"aticon aticon-adjust\" aria-hidden=\"true\"></span></button></li>';";
292
}
293
if ( get_option( 'wpa_toolbar' ) == 'on' && $enable_grayscale ) {
294
echo "insert_a11y_toolbar += '<li class=\"a11y-toolbar-list-item\"><button type=\"button\" class=\"a11y-toggle-grayscale toggle-grayscale\" id=\"is_normal_color\" aria-pressed=\"false\"><span class=\"offscreen\">$grayscale</span><span class=\"aticon aticon-tint\" aria-hidden=\"true\"></span></button></li>';";
295
}
296
- if ( get_option( 'wpa_toolbar' ) == 'on' && $enable_contrast ) {
297
echo "insert_a11y_toolbar += '<li class=\"a11y-toolbar-list-item\"><button type=\"button\" class=\"a11y-toggle-fontsize toggle-fontsize\" id=\"is_normal_fontsize\" aria-pressed=\"false\"><span class=\"offscreen\">$fontsize</span><span class=\"aticon aticon-font\" aria-hidden=\"true\"></span></button></li>';";
298
}
299
echo "
3
Plugin Name: WP Accessibility
4
Plugin URI: http://www.joedolson.com/wp-accessibility/
5
Description: Helps improve accessibility in your WordPress site, like removing title attributes.
6
+ Version: 1.5.9
7
Author: Joe Dolson
8
Text Domain: wp-accessibility
9
Domain Path: /lang
44
45
// ACTIVATION
46
function wpa_install() {
47
+ $wpa_version = '1.5.9';
48
if ( get_option( 'wpa_installed' ) != 'true' ) {
49
add_option( 'rta_from_nav_menu', 'on' );
50
add_option( 'rta_from_page_lists', 'on' );
244
$fontsize = __( 'Toggle Font size', 'wp-accessibility' );
245
$enable_grayscale = ( get_option( 'wpa_toolbar_gs' ) == 'on' ) ? true : false;
246
$enable_contrast = ( get_option( 'wpa_toolbar_ct' ) == 'off' ) ? false : true;
247
+ $enable_fontsize = ( get_option( 'wpa_toolbar_fs' ) == 'off' ) ? false : true;
248
$responsive = ( get_option( 'wpa_toolbar_mobile' ) == 'on' ) ? 'a11y-responsive ' : '';
249
$toolbar = '
250
<!-- a11y toolbar widget -->
287
var insert_a11y_toolbar = '<!-- a11y toolbar -->';
288
insert_a11y_toolbar += '<div class=\"$responsive a11y-toolbar$is_rtl$is_right\">';
289
insert_a11y_toolbar += '<ul class=\"a11y-toolbar-list\">';";
290
+ if ( get_option( 'wpa_toolbar' ) == 'on' && $enable_contrast ) {
291
echo "insert_a11y_toolbar += '<li class=\"a11y-toolbar-list-item\"><button type=\"button\" class=\"a11y-toggle-contrast toggle-contrast\" id=\"is_normal_contrast\" aria-pressed=\"false\"><span class=\"offscreen\">$contrast</span><span class=\"aticon aticon-adjust\" aria-hidden=\"true\"></span></button></li>';";
292
}
293
if ( get_option( 'wpa_toolbar' ) == 'on' && $enable_grayscale ) {
294
echo "insert_a11y_toolbar += '<li class=\"a11y-toolbar-list-item\"><button type=\"button\" class=\"a11y-toggle-grayscale toggle-grayscale\" id=\"is_normal_color\" aria-pressed=\"false\"><span class=\"offscreen\">$grayscale</span><span class=\"aticon aticon-tint\" aria-hidden=\"true\"></span></button></li>';";
295
}
296
+ if ( get_option( 'wpa_toolbar' ) == 'on' && $enable_fontsize ) {
297
echo "insert_a11y_toolbar += '<li class=\"a11y-toolbar-list-item\"><button type=\"button\" class=\"a11y-toggle-fontsize toggle-fontsize\" id=\"is_normal_fontsize\" aria-pressed=\"false\"><span class=\"offscreen\">$fontsize</span><span class=\"aticon aticon-font\" aria-hidden=\"true\"></span></button></li>';";
298
}
299
echo "