diff --git a/accessibility-checker.php b/accessibility-checker.php index 3a104eaa..85d991a2 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.16.3 + * Version: 1.16.4 * Author: Equalize Digital * Author URI: https://equalizedigital.com * License: GPL-2.0+ @@ -35,7 +35,7 @@ // Current plugin version. if ( ! defined( 'EDAC_VERSION' ) ) { - define( 'EDAC_VERSION', '1.16.3' ); + define( 'EDAC_VERSION', '1.16.4' ); } // Current database version. diff --git a/package.json b/package.json index ce395e12..066499c4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "accessibility-checker", - "version": "1.16.3", + "version": "1.16.4", "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 0a62be35..73173138 100644 --- a/readme.txt +++ b/readme.txt @@ -3,7 +3,7 @@ Contributors: equalizedigital, alh0319, stevejonesdev Tags: accessibility, accessible, wcag, ada, WP accessibility Requires at least: 6.2 Tested up to: 6.7.0 -Stable tag: 1.16.3 +Stable tag: 1.16.4 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html @@ -171,6 +171,13 @@ No, Accessibility Checker runs completely on your server and does not require yo == Changelog == += 1.16.4 = +* Enhancement: Improve the table header detection and validation for row headers. +* Enhancement: Show notice on fixes settings when they are saved from options page. +* Fixed: Don't check for possible headerif there is no text content. +* Fixed: Multisite query fix to make sure issues are assigned correct site id. +* Fixed: Correct where a scan link points. + = 1.16.3 = * Enhancement: Add Fix settings to site health info panels. * Fixed: Corrected a string that was misplaced in a fix. diff --git a/src/pageScanner/checks/paragraph-styled-as-header.js b/src/pageScanner/checks/paragraph-styled-as-header.js index ce510392..f9655c6c 100644 --- a/src/pageScanner/checks/paragraph-styled-as-header.js +++ b/src/pageScanner/checks/paragraph-styled-as-header.js @@ -22,6 +22,11 @@ export default { evaluate: ( node ) => { const pixelSize = fontSizeInPx( node ); + // If there's no text content, it's not a header. + if ( ! node.textContent.trim() ) { + return false; + } + // Long paragraphs or those with font size under 16px are unlikely to be headers. if ( node.textContent.trim().length > 50 || pixelSize < 16 ) { return false;