WP Accessibility - Version 1.6.7

Version Description

  • Bug fix: error in generated CSS for skiplinks
Download this release

Release Info

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

Code changes from version 1.6.6 to 1.6.7

Files changed (3) hide show
  1. js/current-menu-item.js +1 -1
  2. readme.txt +5 -1
  3. wp-accessibility.php +11 -10
js/current-menu-item.js CHANGED
@@ -1,5 +1,5 @@
1
  (function ($) {
2
  $(function() {
3
  $( '.current-menu-item a, .current_page_item a' ).attr( 'aria-current', 'true' ).append( "<span class='screen-reader-text'>(current)</span>" );
4
- });
5
  }(jQuery));
1
  (function ($) {
2
  $(function() {
3
  $( '.current-menu-item a, .current_page_item a' ).attr( 'aria-current', 'true' ).append( "<span class='screen-reader-text'>(current)</span>" );
4
+ });
5
  }(jQuery));
readme.txt CHANGED
@@ -5,7 +5,7 @@ Tags: title, accessibility, accessible, navigation, wcag, a11y, section508, focu
5
  Requires at least: 3.4.2
6
  Requires PHP: 5.3
7
  Tested up to: 5.1
8
- Stable tag: 1.6.6
9
  Text Domain: wp-accessibility
10
  License: GPLv2 or later
11
 
@@ -65,6 +65,10 @@ The plug-in is intended to help with deficiencies commonly found in themes and t
65
  [Suggest a change!](https://github.com/joedolson/wp-accessibility/issues/)
66
  * Conflict with NextGen gallery to explore
67
 
 
 
 
 
68
  = 1.6.6 =
69
 
70
  * Per request, remove font sizing declaration for skip links. Inherit from site.
5
  Requires at least: 3.4.2
6
  Requires PHP: 5.3
7
  Tested up to: 5.1
8
+ Stable tag: 1.6.7
9
  Text Domain: wp-accessibility
10
  License: GPLv2 or later
11
 
65
  [Suggest a change!](https://github.com/joedolson/wp-accessibility/issues/)
66
  * Conflict with NextGen gallery to explore
67
 
68
+ = 1.6.7 =
69
+
70
+ * Bug fix: error in generated CSS for skiplinks
71
+
72
  = 1.6.6 =
73
 
74
  * Per request, remove font sizing declaration for skip links. Inherit from site.
wp-accessibility.php CHANGED
@@ -17,7 +17,7 @@
17
  * Domain Path: /lang
18
  * License: GPL-2.0+
19
  * License URI: http://www.gnu.org/license/gpl-2.0.txt
20
- * Version: 1.6.6
21
  */
22
 
23
  /*
@@ -68,7 +68,7 @@ function wpa_admin_menu() {
68
  * Install on activation.
69
  */
70
  function wpa_install() {
71
- $wpa_version = '1.6.6';
72
  if ( 'true' != get_option( 'wpa_installed' ) ) {
73
  add_option( 'rta_from_nav_menu', 'on' );
74
  add_option( 'rta_from_page_lists', 'on' );
@@ -267,20 +267,21 @@ function wpa_css() {
267
  $passive = get_option( 'asl_styles_passive' );
268
  $vis = '';
269
  $invis = '';
 
 
 
 
270
  // If links are visible, "hover" is a focus style, otherwise, it's a passive style.
271
  if ( 'on' == get_option( 'asl_visible' ) ) {
272
- $vis = '#skiplinks a:hover,';
273
  $passive = $default_passive . $passive;
274
  } else {
275
- $invis = '#skiplinks a:hover,';
276
  $passive = '';
277
  }
278
- $visibility = ( 'on' == get_option( 'asl_visible' ) ) ? 'wpa-visible' : 'wpa-hide';
279
- $is_rtl = ( is_rtl() ) ? '-rtl' : '-ltr';
280
- $class = '.' . $visibility . $is_rtl;
281
- $styles .= "
282
- $class#skiplinks a, $class$invis $class#skiplinks a:visited { $passive }
283
- $class#skiplinks a:active, $class$vis $class#skiplinks a:focus { $focus }
284
  ";
285
  }
286
  if ( 'on' == get_option( 'wpa_focus' ) ) {
17
  * Domain Path: /lang
18
  * License: GPL-2.0+
19
  * License URI: http://www.gnu.org/license/gpl-2.0.txt
20
+ * Version: 1.6.7
21
  */
22
 
23
  /*
68
  * Install on activation.
69
  */
70
  function wpa_install() {
71
+ $wpa_version = '1.6.7';
72
  if ( 'true' != get_option( 'wpa_installed' ) ) {
73
  add_option( 'rta_from_nav_menu', 'on' );
74
  add_option( 'rta_from_page_lists', 'on' );
267
  $passive = get_option( 'asl_styles_passive' );
268
  $vis = '';
269
  $invis = '';
270
+
271
+ $visibility = ( 'on' == get_option( 'asl_visible' ) ) ? 'wpa-visible' : 'wpa-hide';
272
+ $is_rtl = ( is_rtl() ) ? '-rtl' : '-ltr';
273
+ $class = '.' . $visibility . $is_rtl;
274
  // If links are visible, "hover" is a focus style, otherwise, it's a passive style.
275
  if ( 'on' == get_option( 'asl_visible' ) ) {
276
+ $vis = $class . '#skiplinks a:hover,';
277
  $passive = $default_passive . $passive;
278
  } else {
279
+ $invis = $class . '#skiplinks a:hover,';
280
  $passive = '';
281
  }
282
+ $styles .= "
283
+ $class#skiplinks a, $invis $class#skiplinks a:visited { $passive }
284
+ $class#skiplinks a:active, $vis $class#skiplinks a:focus { $focus }
 
 
 
285
  ";
286
  }
287
  if ( 'on' == get_option( 'wpa_focus' ) ) {