Skip to content

Commit 3b98d6a

Browse files
authored
Merge pull request #1020 from equalizedigital/release/1.25.0
Backport: Release/1.25.0
2 parents abf6b65 + 7777fc1 commit 3b98d6a

4 files changed

Lines changed: 16 additions & 4 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.24.0
13+
* Version: 1.25.0
1414
* Author: Equalize Digital
1515
* Author URI: https://equalizedigital.com
1616
* License: GPL-2.0+
@@ -35,7 +35,7 @@
3535

3636
// Current plugin version.
3737
if ( ! defined( 'EDAC_VERSION' ) ) {
38-
define( 'EDAC_VERSION', '1.24.0' );
38+
define( 'EDAC_VERSION', '1.25.0' );
3939
}
4040

4141
// Current database version.

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.24.0",
3+
"version": "1.25.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, accessible, wcag, ada, WP accessibility
44
Requires at least: 6.2
55
Tested up to: 6.8.0
6-
Stable tag: 1.24.0
6+
Stable tag: 1.25.0
77
License: GPLv2 or later
88
License URI: http://www.gnu.org/licenses/gpl-2.0.html
99

@@ -211,6 +211,11 @@ You can report security bugs through the Patchstack Vulnerability Disclosure Pro
211211

212212
== Changelog ==
213213

214+
= 1.25.0 =
215+
* Added: Ability to scan the main posts archive (blog page).
216+
* Enhanced: Improved the Anchor Exists rule to handle more situations.
217+
* Fixed: Avoid console error for clear button on CPTs that are not scannable.
218+
214219
= 1.24.0 =
215220
* Added: Translations for 33 languages.
216221
* Enhanced: Handle Elementor buttons better in the new warnings fix.

src/pageScanner/checks/anchor-exists.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@ export default {
1313
// Extract the fragment identifier (remove the # prefix)
1414
const fragment = href.slice( 1 );
1515

16+
// If the fragment is empty, we can't check for existence, this shouldn't be possible
17+
// due to the selectors passed here - but adding for type safety
18+
if ( fragment === '' ) {
19+
return true;
20+
}
21+
1622
// Use CSS.escape() to safely handle special characters in selectors
1723
const idSelector = `#${ CSS.escape( fragment ) }`;
1824

@@ -28,3 +34,4 @@ export default {
2834
return namedAnchor !== null;
2935
},
3036
};
37+

0 commit comments

Comments
 (0)