Version Description
- Bug fix: Broken class array query in longdesc.
Download this release
Release Info
Developer | joedolson |
Plugin | WP Accessibility |
Version | 1.7.6 |
Comparing to | |
See all releases |
Code changes from version 1.7.5 to 1.7.6
- js/longdesc.button.js +1 -2
- readme.txt +5 -1
- wp-accessibility-alt.php +2 -0
- wp-accessibility-longdesc.php +1 -1
- wp-accessibility.php +2 -2
js/longdesc.button.js
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
var longdesc = $(this).attr('longdesc');
|
5 |
var img = $(this);
|
6 |
var classes = img.attr('class');
|
7 |
-
var class_array =
|
8 |
var image_id = '';
|
9 |
$.each( class_array, function ( index, value ) {
|
10 |
if ( value.match( /wp-image-/gi ) ) {
|
@@ -37,7 +37,6 @@
|
|
37 |
|
38 |
function wpa_draw_longdesc( img, image_id, longdesc ) {
|
39 |
var classes = img.attr('class');
|
40 |
-
var class_array = ( Array.isArray(classes) ) ? classes.split(' ') : [];
|
41 |
img.attr('class', '').attr('longdesc', longdesc );
|
42 |
img.attr('id','longdesc-return-' + image_id );
|
43 |
img.wrap('<div class="wpa-ld" />')
|
4 |
var longdesc = $(this).attr('longdesc');
|
5 |
var img = $(this);
|
6 |
var classes = img.attr('class');
|
7 |
+
var class_array = img.attr('class').match(/\S+/g);
|
8 |
var image_id = '';
|
9 |
$.each( class_array, function ( index, value ) {
|
10 |
if ( value.match( /wp-image-/gi ) ) {
|
37 |
|
38 |
function wpa_draw_longdesc( img, image_id, longdesc ) {
|
39 |
var classes = img.attr('class');
|
|
|
40 |
img.attr('class', '').attr('longdesc', longdesc );
|
41 |
img.attr('id','longdesc-return-' + image_id );
|
42 |
img.wrap('<div class="wpa-ld" />')
|
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.6
|
8 |
-
Stable tag: 1.7.
|
9 |
Text Domain: wp-accessibility
|
10 |
License: GPLv2 or later
|
11 |
|
@@ -74,6 +74,10 @@ The plug-in is intended to help with deficiencies commonly found in themes and t
|
|
74 |
|
75 |
[Suggest a change!](https://github.com/joedolson/wp-accessibility/issues/)
|
76 |
|
|
|
|
|
|
|
|
|
77 |
= 1.7.5 =
|
78 |
|
79 |
* Bug fix: register_block_style only exists since WP 5.3; check function exists first.
|
5 |
Requires at least: 3.4.2
|
6 |
Requires PHP: 5.3
|
7 |
Tested up to: 5.6
|
8 |
+
Stable tag: 1.7.6
|
9 |
Text Domain: wp-accessibility
|
10 |
License: GPLv2 or later
|
11 |
|
74 |
|
75 |
[Suggest a change!](https://github.com/joedolson/wp-accessibility/issues/)
|
76 |
|
77 |
+
= 1.7.6 =
|
78 |
+
|
79 |
+
* Bug fix: Broken class array query in longdesc.
|
80 |
+
|
81 |
= 1.7.5 =
|
82 |
|
83 |
* Bug fix: register_block_style only exists since WP 5.3; check function exists first.
|
wp-accessibility-alt.php
CHANGED
@@ -43,6 +43,8 @@ function wpa_media_value( $column, $id ) {
|
|
43 |
'""',
|
44 |
"''",
|
45 |
' ',
|
|
|
|
|
46 |
);
|
47 |
switch ( $mime ) {
|
48 |
case 'image/jpeg':
|
43 |
'""',
|
44 |
"''",
|
45 |
' ',
|
46 |
+
' ',
|
47 |
+
'-',
|
48 |
);
|
49 |
switch ( $mime ) {
|
50 |
case 'image/jpeg':
|
wp-accessibility-longdesc.php
CHANGED
@@ -182,4 +182,4 @@ if ( function_exists( 'register_block_style' ) ) {
|
|
182 |
'style_handle' => 'longdesc-style',
|
183 |
)
|
184 |
);
|
185 |
-
}
|
182 |
'style_handle' => 'longdesc-style',
|
183 |
)
|
184 |
);
|
185 |
+
}
|
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.7.
|
21 |
*/
|
22 |
|
23 |
/*
|
@@ -69,7 +69,7 @@ function wpa_admin_menu() {
|
|
69 |
* Install on activation.
|
70 |
*/
|
71 |
function wpa_install() {
|
72 |
-
$wpa_version = '1.7.
|
73 |
if ( 'true' !== get_option( 'wpa_installed' ) ) {
|
74 |
add_option( 'rta_from_nav_menu', 'on' );
|
75 |
add_option( 'rta_from_page_lists', 'on' );
|
17 |
* Domain Path: /lang
|
18 |
* License: GPL-2.0+
|
19 |
* License URI: http://www.gnu.org/license/gpl-2.0.txt
|
20 |
+
* Version: 1.7.6
|
21 |
*/
|
22 |
|
23 |
/*
|
69 |
* Install on activation.
|
70 |
*/
|
71 |
function wpa_install() {
|
72 |
+
$wpa_version = '1.7.6';
|
73 |
if ( 'true' !== get_option( 'wpa_installed' ) ) {
|
74 |
add_option( 'rta_from_nav_menu', 'on' );
|
75 |
add_option( 'rta_from_page_lists', 'on' );
|