Skip to content

Commit 8c362f7

Browse files
authored
Merge pull request #1707 from equalizedigital/release/1.42.0
[Backport] Release v1.42.0
2 parents 54e2803 + 77b9a85 commit 8c362f7

7 files changed

Lines changed: 59 additions & 14 deletions

File tree

accessibility-checker.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* Plugin Name: Accessibility Checker
1111
* Plugin URI: https://a11ychecker.com
1212
* Description: Audit and check your website for accessibility before you hit publish. In-post accessibility scanner and guidance.
13-
* Version: 1.41.0
13+
* Version: 1.42.0
1414
* Requires PHP: 7.4
1515
* Author: Equalize Digital
1616
* Author URI: https://equalizedigital.com
@@ -36,7 +36,7 @@
3636

3737
// Current plugin version.
3838
if ( ! defined( 'EDAC_VERSION' ) ) {
39-
define( 'EDAC_VERSION', '1.41.0' );
39+
define( 'EDAC_VERSION', '1.42.0' );
4040
}
4141

4242
// Current database version.

changelog.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
*** Accessibility Checker ***
22

3+
2026-05-18 - version 1.42.0
4+
* Updated - add support for role="none" in several of the link and image alt related rules.
5+
* Updated - added support for named anchors as jump links.
6+
* New - added system info checker for compatibility checking of plugins and themes.
7+
38
2026-05-13 - version 1.41.0
49
* Updated - the possible heading rule now accounts for elements with role="heading" appropriately.
510
* Fix - several language translations are now properly detected by WordPress when using them.

includes/classes/SystemInfo/SystemInfo.php

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,24 @@ class SystemInfo {
2020
* @return array<int, array<string, string>>
2121
*/
2222
public static function get_active_plugins() {
23-
$active_plugins = [];
23+
if ( ! function_exists( 'get_plugin_data' ) ) {
24+
require_once ABSPATH . 'wp-admin/includes/plugin.php';
25+
}
2426

25-
foreach ( wp_get_active_and_valid_plugins() as $plugin_path ) {
26-
$plugin_data = get_plugin_data( $plugin_path, false, false );
27-
$active_plugins[] = [
28-
'name' => $plugin_data['Name'] ?? '',
29-
'slug' => self::get_plugin_slug_from_path( $plugin_path ),
30-
'version' => $plugin_data['Version'] ?? '',
31-
];
27+
$active_plugins = [];
28+
$plugins = wp_get_active_and_valid_plugins();
29+
30+
if ( is_array( $plugins ) ) {
31+
foreach ( $plugins as $plugin_path ) {
32+
$plugin_data = get_plugin_data( $plugin_path, false, false );
33+
if ( is_array( $plugin_data ) ) {
34+
$active_plugins[] = [
35+
'name' => $plugin_data['Name'] ?? '',
36+
'slug' => self::get_plugin_slug_from_path( $plugin_path ),
37+
'version' => $plugin_data['Version'] ?? '',
38+
];
39+
}
40+
}
3241
}
3342

3443
return $active_plugins;

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "accessibility-checker",
3-
"version": "1.41.0",
3+
"version": "1.42.0",
44
"description": "Audit and check your website for accessibility before you hit publish. In-post accessibility scanner and guidance.",
55
"author": "Equalize Digital",
66
"license": "GPL-2.0+",

readme.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Contributors: equalizedigital, alh0319, stevejonesdev
33
Tags: accessibility, EAA, WCAG, ADA, WP accessibility, accessibility scanner
44
Requires at least: 6.7
55
Tested up to: 7.0
6-
Stable tag: 1.41.0
6+
Stable tag: 1.42.0
77
Requires PHP: 7.4
88
License: GPL-2.0-or-later
99
License URI: https://www.gnu.org/licenses/gpl-2.0.html
@@ -279,6 +279,11 @@ You can report security bugs through the Patchstack Vulnerability Disclosure Pro
279279

280280
== Changelog ==
281281

282+
2026-05-18 - version 1.42.0
283+
* Updated - add support for role="none" in several of the link and image alt related rules.
284+
* Updated - added support for named anchors as jump links.
285+
* New - added system info checker for compatibility checking of plugins and themes.
286+
282287
2026-05-13 - version 1.41.0
283288
* Updated - the possible heading rule now accounts for elements with role="heading" appropriately.
284289
* Fix - several language translations are now properly detected by WordPress when using them.

tests/phpunit/Admin/SystemInfoTest.php

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,32 @@ public function testGetActivePluginsEntriesAreAllStrings() {
152152
}
153153
}
154154

155+
/**
156+
* Active plugin slugs match WordPress active-and-valid plugin list.
157+
*
158+
* @return void
159+
*/
160+
public function testGetActivePluginsMatchesActiveAndValidPluginList() {
161+
$expected_slugs = [];
162+
$active_paths = wp_get_active_and_valid_plugins();
163+
164+
if ( is_array( $active_paths ) ) {
165+
$expected_slugs = array_map( [ SystemInfo::class, 'get_plugin_slug_from_path' ], $active_paths );
166+
}
167+
168+
$actual_slugs = array_map(
169+
static function ( $plugin ) {
170+
return is_array( $plugin ) && isset( $plugin['slug'] ) ? $plugin['slug'] : '';
171+
},
172+
SystemInfo::get_active_plugins()
173+
);
174+
175+
sort( $expected_slugs );
176+
sort( $actual_slugs );
177+
178+
$this->assertSame( $expected_slugs, $actual_slugs );
179+
}
180+
155181
/**
156182
* A non-WP_Theme value returns an empty array.
157183
*

0 commit comments

Comments
 (0)