Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions accessibility-checker.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* Plugin Name: Accessibility Checker
* Plugin URI: https://a11ychecker.com
* Description: Audit and check your website for accessibility before you hit publish. In-post accessibility scanner and guidance.
* Version: 1.41.0
* Version: 1.42.0
* Requires PHP: 7.4
* Author: Equalize Digital
* Author URI: https://equalizedigital.com
Expand All @@ -36,7 +36,7 @@

// Current plugin version.
if ( ! defined( 'EDAC_VERSION' ) ) {
define( 'EDAC_VERSION', '1.41.0' );
define( 'EDAC_VERSION', '1.42.0' );
}

// Current database version.
Expand Down
5 changes: 5 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
*** Accessibility Checker ***

2026-05-18 - version 1.42.0
* Updated - add support for role="none" in several of the link and image alt related rules.
* Updated - added support for named anchors as jump links.
* New - added system info checker for compatibility checking of plugins and themes.

2026-05-13 - version 1.41.0
* Updated - the possible heading rule now accounts for elements with role="heading" appropriately.
* Fix - several language translations are now properly detected by WordPress when using them.
Expand Down
25 changes: 17 additions & 8 deletions includes/classes/SystemInfo/SystemInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,24 @@ class SystemInfo {
* @return array<int, array<string, string>>
*/
public static function get_active_plugins() {
$active_plugins = [];
if ( ! function_exists( 'get_plugin_data' ) ) {
require_once ABSPATH . 'wp-admin/includes/plugin.php';
}

foreach ( wp_get_active_and_valid_plugins() as $plugin_path ) {
$plugin_data = get_plugin_data( $plugin_path, false, false );
$active_plugins[] = [
'name' => $plugin_data['Name'] ?? '',
'slug' => self::get_plugin_slug_from_path( $plugin_path ),
'version' => $plugin_data['Version'] ?? '',
];
$active_plugins = [];
$plugins = wp_get_active_and_valid_plugins();

if ( is_array( $plugins ) ) {
foreach ( $plugins as $plugin_path ) {
$plugin_data = get_plugin_data( $plugin_path, false, false );
if ( is_array( $plugin_data ) ) {
$active_plugins[] = [
'name' => $plugin_data['Name'] ?? '',
'slug' => self::get_plugin_slug_from_path( $plugin_path ),
'version' => $plugin_data['Version'] ?? '',
];
}
}
}

return $active_plugins;
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "accessibility-checker",
"version": "1.41.0",
"version": "1.42.0",
"description": "Audit and check your website for accessibility before you hit publish. In-post accessibility scanner and guidance.",
"author": "Equalize Digital",
"license": "GPL-2.0+",
Expand Down
7 changes: 6 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Contributors: equalizedigital, alh0319, stevejonesdev
Tags: accessibility, EAA, WCAG, ADA, WP accessibility, accessibility scanner
Requires at least: 6.7
Tested up to: 7.0
Stable tag: 1.41.0
Stable tag: 1.42.0
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Expand Down Expand Up @@ -279,6 +279,11 @@ You can report security bugs through the Patchstack Vulnerability Disclosure Pro

== Changelog ==

2026-05-18 - version 1.42.0
* Updated - add support for role="none" in several of the link and image alt related rules.
* Updated - added support for named anchors as jump links.
* New - added system info checker for compatibility checking of plugins and themes.

2026-05-13 - version 1.41.0
* Updated - the possible heading rule now accounts for elements with role="heading" appropriately.
* Fix - several language translations are now properly detected by WordPress when using them.
Expand Down
26 changes: 26 additions & 0 deletions tests/phpunit/Admin/SystemInfoTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,32 @@ public function testGetActivePluginsEntriesAreAllStrings() {
}
}

/**
* Active plugin slugs match WordPress active-and-valid plugin list.
*
* @return void
*/
public function testGetActivePluginsMatchesActiveAndValidPluginList() {
$expected_slugs = [];
$active_paths = wp_get_active_and_valid_plugins();

if ( is_array( $active_paths ) ) {
$expected_slugs = array_map( [ SystemInfo::class, 'get_plugin_slug_from_path' ], $active_paths );
}

$actual_slugs = array_map(
static function ( $plugin ) {
return is_array( $plugin ) && isset( $plugin['slug'] ) ? $plugin['slug'] : '';
},
SystemInfo::get_active_plugins()
);

sort( $expected_slugs );
sort( $actual_slugs );

$this->assertSame( $expected_slugs, $actual_slugs );
}

/**
* A non-WP_Theme value returns an empty array.
*
Expand Down
Loading