Version Description
- Bug fix: Alignment classes should only apply when wpa-ld class present.
- Bug fix: Escape widget title content.
- Bug fix: Set cookies with SameSite
Download this release
Release Info
Developer | joedolson |
Plugin | WP Accessibility |
Version | 1.9.2 |
Comparing to | |
See all releases |
Code changes from version 1.9.1 to 1.9.2
- class-wp-accessibility-toolbar.php +1 -1
- css/wpa-style.css +3 -3
- readme.txt +8 -1
- toolbar/js/a11y.js +2 -2
- wp-accessibility.php +3 -3
class-wp-accessibility-toolbar.php
CHANGED
@@ -49,7 +49,7 @@ class Wp_Accessibility_Toolbar extends WP_Widget {
|
|
49 |
|
50 |
$title = apply_filters( 'widget_title', ( empty( $instance['title'] ) ? false : $instance['title'] ), $instance, $args );
|
51 |
echo $before_widget;
|
52 |
-
echo ( $title ) ? $before_title . $title . $after_title : '';
|
53 |
echo wpa_toolbar_html();
|
54 |
echo $after_widget;
|
55 |
}
|
49 |
|
50 |
$title = apply_filters( 'widget_title', ( empty( $instance['title'] ) ? false : $instance['title'] ), $instance, $args );
|
51 |
echo $before_widget;
|
52 |
+
echo ( $title ) ? wp_kses_post( $before_title . $title . $after_title ) : '';
|
53 |
echo wpa_toolbar_html();
|
54 |
echo $after_widget;
|
55 |
}
|
css/wpa-style.css
CHANGED
@@ -37,15 +37,15 @@
|
|
37 |
}
|
38 |
|
39 |
/* basic support for themes that don't define alignleft and alignright for non-image elements. */
|
40 |
-
div.alignleft {
|
41 |
float: left;
|
42 |
}
|
43 |
|
44 |
-
div.alignright {
|
45 |
float: right;
|
46 |
}
|
47 |
|
48 |
-
div.aligncenter {
|
49 |
display: block;
|
50 |
margin: 0 auto;
|
51 |
width: fit-content;
|
37 |
}
|
38 |
|
39 |
/* basic support for themes that don't define alignleft and alignright for non-image elements. */
|
40 |
+
div.alignleft.wpa-ld {
|
41 |
float: left;
|
42 |
}
|
43 |
|
44 |
+
div.alignright.wpa-ld {
|
45 |
float: right;
|
46 |
}
|
47 |
|
48 |
+
div.aligncenter.wpa-ld {
|
49 |
display: block;
|
50 |
margin: 0 auto;
|
51 |
width: fit-content;
|
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.6
|
7 |
Tested up to: 6.0
|
8 |
-
Stable tag: 1.9.
|
9 |
Text Domain: wp-accessibility
|
10 |
License: GPLv2 or later
|
11 |
|
@@ -76,6 +76,13 @@ The plug-in is intended to help with deficiencies commonly found in themes and t
|
|
76 |
|
77 |
[Suggest a change!](https://github.com/joedolson/wp-accessibility/issues/)
|
78 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
79 |
= 1.9.1 =
|
80 |
|
81 |
* Bug fix: Duplicate skiplink styles: if custom styles used, default settings could be appended to them as a duplicate.
|
5 |
Requires at least: 3.4.2
|
6 |
Requires PHP: 5.6
|
7 |
Tested up to: 6.0
|
8 |
+
Stable tag: 1.9.2
|
9 |
Text Domain: wp-accessibility
|
10 |
License: GPLv2 or later
|
11 |
|
76 |
|
77 |
[Suggest a change!](https://github.com/joedolson/wp-accessibility/issues/)
|
78 |
|
79 |
+
= 1.9.2 =
|
80 |
+
|
81 |
+
* Bug fix: Alignment classes should only apply when wpa-ld class present.
|
82 |
+
* Bug fix: Escape widget title content.
|
83 |
+
* Bug fix: Set cookies with SameSite = Strict. Props [@ute-arbeit](https://github.com/joedolson/wp-accessibility/commits?author=ute-arbeit).
|
84 |
+
* Bug fix: Check that post_type param is in query object when searching alt attributes.
|
85 |
+
|
86 |
= 1.9.1 =
|
87 |
|
88 |
* Bug fix: Duplicate skiplink styles: if custom styles used, default settings could be appended to them as a duplicate.
|
toolbar/js/a11y.js
CHANGED
@@ -13,7 +13,7 @@ function createCookie(name, value, days) {
|
|
13 |
var expires = '';
|
14 |
}
|
15 |
|
16 |
-
document.cookie = name + "=" + value + expires + "; path
|
17 |
}
|
18 |
|
19 |
function readCookie(name) {
|
@@ -106,4 +106,4 @@ function eraseCookie(name) {
|
|
106 |
return false;
|
107 |
});
|
108 |
|
109 |
-
} )( jQuery );
|
13 |
var expires = '';
|
14 |
}
|
15 |
|
16 |
+
document.cookie = name + "=" + value + expires + "; path=/; SameSite=Strict;";
|
17 |
}
|
18 |
|
19 |
function readCookie(name) {
|
106 |
return false;
|
107 |
});
|
108 |
|
109 |
+
} )( jQuery );
|
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.9.
|
21 |
*/
|
22 |
|
23 |
/*
|
@@ -70,7 +70,7 @@ function wpa_admin_menu() {
|
|
70 |
* Install on activation.
|
71 |
*/
|
72 |
function wpa_install() {
|
73 |
-
$wpa_version = '1.9.
|
74 |
if ( 'true' !== get_option( 'wpa_installed' ) ) {
|
75 |
add_option( 'rta_from_tag_clouds', 'on' );
|
76 |
add_option( 'asl_styles_focus', '' );
|
@@ -464,7 +464,7 @@ add_filter( 'posts_clauses', 'wpa_search_attachment_alt', 20, 2 );
|
|
464 |
function wpa_search_attachment_alt( $clauses, $query ) {
|
465 |
if ( is_admin() && 'on' === get_option( 'wpa_search_alt' ) ) {
|
466 |
global $wpdb;
|
467 |
-
if ( 'attachment' === $query->query['post_type'] && '' !== $query->query_vars['s'] ) {
|
468 |
$clauses['join'] = " LEFT JOIN {$wpdb->postmeta} AS sq1 ON ( {$wpdb->posts}.ID = sq1.post_id AND ( sq1.meta_key = '_wp_attached_file' OR sq1.meta_key = '_wp_attachment_image_alt' ) )";
|
469 |
}
|
470 |
}
|
17 |
* Domain Path: /lang
|
18 |
* License: GPL-2.0+
|
19 |
* License URI: http://www.gnu.org/license/gpl-2.0.txt
|
20 |
+
* Version: 1.9.2
|
21 |
*/
|
22 |
|
23 |
/*
|
70 |
* Install on activation.
|
71 |
*/
|
72 |
function wpa_install() {
|
73 |
+
$wpa_version = '1.9.2';
|
74 |
if ( 'true' !== get_option( 'wpa_installed' ) ) {
|
75 |
add_option( 'rta_from_tag_clouds', 'on' );
|
76 |
add_option( 'asl_styles_focus', '' );
|
464 |
function wpa_search_attachment_alt( $clauses, $query ) {
|
465 |
if ( is_admin() && 'on' === get_option( 'wpa_search_alt' ) ) {
|
466 |
global $wpdb;
|
467 |
+
if ( isset( $query->query['post_type'] ) && 'attachment' === $query->query['post_type'] && '' !== $query->query_vars['s'] ) {
|
468 |
$clauses['join'] = " LEFT JOIN {$wpdb->postmeta} AS sq1 ON ( {$wpdb->posts}.ID = sq1.post_id AND ( sq1.meta_key = '_wp_attached_file' OR sq1.meta_key = '_wp_attachment_image_alt' ) )";
|
469 |
}
|
470 |
}
|