Skip to content

Commit

Permalink
Merge pull request #826 from equalizedigital/release/1.16.4
Browse files Browse the repository at this point in the history
Release/1.16.4
  • Loading branch information
pattonwebz authored Dec 5, 2024
2 parents 1676a05 + 8d1d438 commit 6a07a3e
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 4 deletions.
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.16.3
* Version: 1.16.4
* Author: Equalize Digital
* Author URI: https://equalizedigital.com
* License: GPL-2.0+
Expand All @@ -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.
Expand Down
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.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+",
Expand Down
9 changes: 8 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, 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

Expand Down Expand Up @@ -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.
Expand Down
5 changes: 5 additions & 0 deletions src/pageScanner/checks/paragraph-styled-as-header.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 6a07a3e

Please sign in to comment.