From c5fd3bbf50c934dda88e304b477c97e769140294 Mon Sep 17 00:00:00 2001 From: pattonwebz Date: Mon, 18 May 2026 20:30:49 +0100 Subject: [PATCH 1/6] Bump version * Version: 1.41.0 -> 1.42.0 --- accessibility-checker.php | 4 ++-- package.json | 2 +- readme.txt | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/accessibility-checker.php b/accessibility-checker.php index 14d8b4058..dd55a623c 100755 --- a/accessibility-checker.php +++ b/accessibility-checker.php @@ -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 @@ -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. diff --git a/package.json b/package.json index 64e667ce9..1b7a9ca34 100644 --- a/package.json +++ b/package.json @@ -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+", diff --git a/readme.txt b/readme.txt index 565733a7e..d4418d3a0 100644 --- a/readme.txt +++ b/readme.txt @@ -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 From c324d0e1014f238ca5180cc2429fa703a3679b04 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 18 May 2026 19:42:14 +0000 Subject: [PATCH 2/6] Resolve release 1.42.0 review follow-ups (tests, changelog, lockfile metadata) Agent-Logs-Url: https://github.com/equalizedigital/accessibility-checker/sessions/9dc7a3bb-db30-44e6-98bc-288e833ed0d6 Co-authored-by: pattonwebz <3902039+pattonwebz@users.noreply.github.com> --- package-lock.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package-lock.json b/package-lock.json index cbdab636d..efa294bc5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "accessibility-checker", - "version": "1.41.0", + "version": "1.42.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "accessibility-checker", - "version": "1.41.0", + "version": "1.42.0", "hasInstallScript": true, "license": "GPL-2.0+", "devDependencies": { From d9ae994de1595b87d5d360a5d47e382c0743087e Mon Sep 17 00:00:00 2001 From: pattonwebz Date: Mon, 18 May 2026 20:49:39 +0100 Subject: [PATCH 3/6] Add changelog entry for v1.42.0 --- changelog.txt | 4 ++++ readme.txt | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/changelog.txt b/changelog.txt index f773c68cd..577767d0d 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,5 +1,9 @@ *** Accessibility Checker *** +2026-05-18 - version 1.42.0 +* 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. diff --git a/readme.txt b/readme.txt index d4418d3a0..57f071ce5 100644 --- a/readme.txt +++ b/readme.txt @@ -279,6 +279,10 @@ You can report security bugs through the Patchstack Vulnerability Disclosure Pro == Changelog == +2026-05-18 - version 1.42.0 +* 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. From 4a395ffed38471d9c58c3fc2b859a9aa22b0a8aa Mon Sep 17 00:00:00 2001 From: pattonwebz Date: Mon, 18 May 2026 21:00:04 +0100 Subject: [PATCH 4/6] Add extra safety include for the get_plugin_data function and make array loop more safe --- includes/classes/SystemInfo/SystemInfo.php | 25 +++++++++++++++------- 1 file changed, 17 insertions(+), 8 deletions(-) diff --git a/includes/classes/SystemInfo/SystemInfo.php b/includes/classes/SystemInfo/SystemInfo.php index 72ba82a3b..a79d44499 100644 --- a/includes/classes/SystemInfo/SystemInfo.php +++ b/includes/classes/SystemInfo/SystemInfo.php @@ -20,15 +20,24 @@ class SystemInfo { * @return array> */ 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; From 61f69c68f39d204210749432ddcd5c2b57d3917f Mon Sep 17 00:00:00 2001 From: pattonwebz Date: Mon, 18 May 2026 21:00:21 +0100 Subject: [PATCH 5/6] Add test to ensure plugins are valid and active when returned --- tests/phpunit/Admin/SystemInfoTest.php | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/tests/phpunit/Admin/SystemInfoTest.php b/tests/phpunit/Admin/SystemInfoTest.php index 3ee51b34e..f45b8a1d9 100644 --- a/tests/phpunit/Admin/SystemInfoTest.php +++ b/tests/phpunit/Admin/SystemInfoTest.php @@ -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. * From 77b9a852d41f7615c9986ef16f9ef4155f0aa9f7 Mon Sep 17 00:00:00 2001 From: pattonwebz Date: Tue, 19 May 2026 16:12:10 +0100 Subject: [PATCH 6/6] Add changelog entry for new role="none" handling --- changelog.txt | 1 + readme.txt | 1 + 2 files changed, 2 insertions(+) diff --git a/changelog.txt b/changelog.txt index 577767d0d..4b651a8d1 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,6 +1,7 @@ *** 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. diff --git a/readme.txt b/readme.txt index 57f071ce5..31e21529b 100644 --- a/readme.txt +++ b/readme.txt @@ -280,6 +280,7 @@ 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.