Skip to content

Commit

Permalink
Merge pull request #459 from equalizedigital/release/v1.7.1
Browse files Browse the repository at this point in the history
Release/v1.7.1
  • Loading branch information
SteveJonesDev authored Jan 23, 2024
2 parents 13fd3c6 + b824c97 commit 2230771
Show file tree
Hide file tree
Showing 15 changed files with 163 additions and 195 deletions.
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, accessible, wcag, ada, WP accessibility, section 508, aoda, a11y, audit, readability, content analysis
Requires at least: 6.2
Tested up to: 6.4.2
Stable tag: 1.7.0
Stable tag: 1.7.1
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Expand Down Expand Up @@ -171,6 +171,11 @@ No, Accessibility Checker runs completely on your server and does not require yo

== Changelog ==

= 1.7.1 =
* Fixed: classic editor save conflict
* Fixed: password protection message displaying repeatedly
* Fixed: frontend highlighting asset url and debug error

= 1.7.0 =
* Added: Architecture for JavaScript-based checks for better code analysis
* Updated: Color contrast check now uses axe-core rule for improved accuracy
Expand Down
10 changes: 3 additions & 7 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.7.0
* Version: 1.7.1
* Author: Equalize Digital
* Author URI: https://equalizedigital.com
* License: GPL-2.0+
Expand Down Expand Up @@ -45,7 +45,7 @@

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

// Current database version.
Expand Down Expand Up @@ -835,11 +835,7 @@ function edac_summary_ajax() {

// password check.
if (
! (
EDAC_KEY_VALID === true &&
edac_check_plugin_active( 'accessibility-checker-pro/accessibility-checker-pro.php' )
) &&
\EDAC\Helpers::is_basic_auth()
(bool) get_option( 'edac_password_protected', false )
) {
$admin_notices = new \EDAC\Admin_Notices();
$notice_text = $admin_notices->edac_password_protected_notice_text();
Expand Down
9 changes: 5 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,16 @@
"prefer-stable": true,
"repositories": [
{
"type": "vcs",
"url": "https://github.com/equalizedigital/accessibility-checker-wp-env"
"type": "vcs",
"url": "https://github.com/equalizedigital/accessibility-checker-wp-env"
}
],
],
"require-dev": {
"automattic/vipwpcs": "^3",
"dealerdirect/phpcodesniffer-composer-installer": "^0.7.2",
"phpcompatibility/php-compatibility": "*",
"php-parallel-lint/php-parallel-lint": "^1.3"
"php-parallel-lint/php-parallel-lint": "^1.3",
"equalizedigital/accessibility-checker-wp-env": "*"
},
"require": {
"cbschuld/browser.php": "^1.9",
Expand Down
144 changes: 114 additions & 30 deletions composer.lock

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

37 changes: 0 additions & 37 deletions includes/classes/class-helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -207,41 +207,4 @@ public static function is_domain_loopback( $domain ) {

return false;
}

/**
* Determine if this site is using basic auth.
*
* @return boolean
*/
public static function is_basic_auth() {

$key = 'edac_auth_type';

$status = get_transient( $key );

$status = false;

if ( false === $status ) {

//phpcs:disable WordPressVIPMinimum.Functions.RestrictedFunctions.wp_remote_get_wp_remote_get
$response = wp_remote_get( home_url() );
if ( ! is_wp_error( $response ) ) {
$code = wp_remote_retrieve_response_code( $response );

if ( 401 === $code || 403 === $code ) {
$status = 'basic';
}
}

// cache results for up to 30 seconds.
set_transient( $key, $status, 30 );

}

if ( 'basic' === $status ) {
return true;
}

return false;
}
}
Loading

0 comments on commit 2230771

Please sign in to comment.