WP Accessibility - Version 1.2.8

Version Description

  • Bug fix: support for languages with right-to-left reading order.
Download this release

Release Info

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

Code changes from version 1.2.7 to 1.2.8

Files changed (4) hide show
  1. readme.txt +6 -2
  2. toolbar/css/a11y.css +8 -1
  3. wp-accessibility.php +7 -4
  4. wpa-style.css +2 -1
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: joedolson
3
  Donate link: http://www.joedolson.com/donate.php
4
  Tags: title, accessibility, accessible, navigation, wcag, a11y, section508, focus
5
  Requires at least: 3.4.2
6
- Tested up to: 3.8.0
7
- Stable tag: 1.2.6
8
  License: GPLv2 or later
9
 
10
  WP Accessibility provides fixes for common accessibility issues in your WordPress site.
@@ -57,6 +57,10 @@ Visit the [WP Accessibility translations site](http://translate.joedolson.com/pr
57
 
58
  == Changelog ==
59
 
 
 
 
 
60
  = 1.2.7 =
61
 
62
  * For 3.8, eliminate outdated title attribute filters. (nav menus, page lists, edit post links, edit comment links, category links)
3
  Donate link: http://www.joedolson.com/donate.php
4
  Tags: title, accessibility, accessible, navigation, wcag, a11y, section508, focus
5
  Requires at least: 3.4.2
6
+ Tested up to: 3.8.1
7
+ Stable tag: 1.2.7
8
  License: GPLv2 or later
9
 
10
  WP Accessibility provides fixes for common accessibility issues in your WordPress site.
57
 
58
  == Changelog ==
59
 
60
+ = 1.2.8 =
61
+
62
+ * Bug fix: support for languages with right-to-left reading order.
63
+
64
  = 1.2.7 =
65
 
66
  * For 3.8, eliminate outdated title attribute filters. (nav menus, page lists, edit post links, edit comment links, category links)
toolbar/css/a11y.css CHANGED
@@ -107,7 +107,14 @@ fieldset p {
107
  }
108
 
109
  .a11y-toolbar .offscreen, .a11y_stylesheet_path {
110
- position: absolute; left: -999em;
 
 
 
 
 
 
 
111
  }
112
 
113
  .desaturated {
107
  }
108
 
109
  .a11y-toolbar .offscreen, .a11y_stylesheet_path {
110
+ position: absolute !important;
111
+ clip: rect(1px 1px 1px 1px); /* IE6, IE7 */
112
+ clip: rect(1px, 1px, 1px, 1px);
113
+ padding:0 !important;
114
+ border:0 !important;
115
+ height: 1px !important;
116
+ width: 1px !important;
117
+ overflow: hidden;
118
  }
119
 
120
  .desaturated {
wp-accessibility.php CHANGED
@@ -3,11 +3,11 @@
3
  Plugin Name: WP Accessibility
4
  Plugin URI: http://www.joedolson.com/articles/wp-accessibility/
5
  Description: Provides options to improve accessibility in your WordPress site, including removing title attributes.
6
- Version: 1.2.7
7
  Author: Joe Dolson
8
  Author URI: http://www.joedolson.com/
9
 
10
- Copyright 2012-2013 Joe Dolson (joe@joedolson.com)
11
 
12
  This program is free software; you can redistribute it and/or modify
13
  it under the terms of the GNU General Public License as published by
@@ -36,7 +36,7 @@ function add_wpa_admin_menu() {
36
 
37
  // ACTIVATION
38
  function wpa_install() {
39
- $wpa_version = '1.2.7';
40
  if ( get_option('wpa_installed') != 'true' ) {
41
  add_option('rta_from_nav_menu', 'on');
42
  add_option('rta_from_page_lists', 'on');
@@ -199,6 +199,9 @@ function wpa_css() {
199
  $styles = '';
200
  if ( get_option( 'asl_enable') == 'on' ) {
201
  $focus = get_option( 'asl_styles_focus' );
 
 
 
202
  $passive = get_option( 'asl_styles_passive' );
203
  $vis = $invis = '';
204
  // if links are visible, "hover" is a focus style, otherwise, it's a passive style.
@@ -858,7 +861,7 @@ function WP_Widget_Recent_Posts_No_Title_Attributes() {
858
  ob_start();
859
  extract($args);
860
 
861
- $title = apply_filters('widget_title', empty($instance['title']) ? __('Recent Posts') : $instance['title']);
862
  if ( !$number = (int) $instance['number'] ) { $number = 5; }
863
 
864
  $r = new WP_Query(array('showposts' => $number, 'nopaging' => 0, 'post_status' => 'publish', 'ignore_sticky_posts' => 1));
3
  Plugin Name: WP Accessibility
4
  Plugin URI: http://www.joedolson.com/articles/wp-accessibility/
5
  Description: Provides options to improve accessibility in your WordPress site, including removing title attributes.
6
+ Version: 1.2.8
7
  Author: Joe Dolson
8
  Author URI: http://www.joedolson.com/
9
 
10
+ Copyright 2012-2014 Joe Dolson (joe@joedolson.com)
11
 
12
  This program is free software; you can redistribute it and/or modify
13
  it under the terms of the GNU General Public License as published by
36
 
37
  // ACTIVATION
38
  function wpa_install() {
39
+ $wpa_version = '1.2.8';
40
  if ( get_option('wpa_installed') != 'true' ) {
41
  add_option('rta_from_nav_menu', 'on');
42
  add_option('rta_from_page_lists', 'on');
199
  $styles = '';
200
  if ( get_option( 'asl_enable') == 'on' ) {
201
  $focus = get_option( 'asl_styles_focus' );
202
+ if ( !$focus ) {
203
+ $focus = "background-color: #f1f1f1; border-radius: 3px; box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6); clip: auto; color: #21759b; display: block; font-size: 14px; font-weight: bold; height: auto; line-height: normal; padding: 15px 23px 14px; position: absolute; left: 5px; top: 5px; text-decoration: none; text-transform: none; width: auto; z-index: 100000;";
204
+ }
205
  $passive = get_option( 'asl_styles_passive' );
206
  $vis = $invis = '';
207
  // if links are visible, "hover" is a focus style, otherwise, it's a passive style.
861
  ob_start();
862
  extract($args);
863
 
864
+ $title = apply_filters('widget_title', empty($instance['title']) ? __('Recent Posts') : $instance['title'], $instance, $args );
865
  if ( !$number = (int) $instance['number'] ) { $number = 5; }
866
 
867
  $r = new WP_Query(array('showposts' => $number, 'nopaging' => 0, 'post_status' => 'publish', 'ignore_sticky_posts' => 1));
wpa-style.css CHANGED
@@ -1,2 +1,3 @@
1
- .wpa-hide#skiplinks a, .wpa-hide#skiplinks a:hover, .wpa-hide#skiplinks a:visited { position: absolute; left: -999em; }
 
2
  .wpa-hide#skiplinks a:active, .wpa-hide#skiplinks a:focus { position: absolute; }
1
+ .wpa-hide#skiplinks a, .wpa-hide#skiplinks a:hover, .wpa-hide#skiplinks a:visited { position: absolute !important; clip: rect(1px 1px 1px 1px); /* IE6, IE7 */
2
+ clip: rect(1px, 1px, 1px, 1px); padding:0 !important; border:0 !important; height: 1px !important; width: 1px !important; overflow: hidden; }
3
  .wpa-hide#skiplinks a:active, .wpa-hide#skiplinks a:focus { position: absolute; }