Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
 - Update version change to force newest version of editorApp.bundle.js
 - Cast boolean option to boolean out of an abundance of caution
  • Loading branch information
boonedev committed Jan 23, 2024
1 parent 92ee9e2 commit 99ecef6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 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.1
* Version: 1.7.1-beta.7
* 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.1' );
define( 'EDAC_VERSION', '1.7.1-beta.7' );
}

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

// password check.
if (
get_option( 'edac_password_protected', false )
(bool) get_option( 'edac_password_protected', false )
) {
$admin_notices = new \EDAC\Admin_Notices();
$notice_text = $admin_notices->edac_password_protected_notice_text();
Expand Down
2 changes: 1 addition & 1 deletion includes/enqueue-scripts.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ function edac_admin_enqueue_scripts() {
'baseurl' => plugin_dir_url( __DIR__ ),
'active' => $active,
'pro' => $pro,
'authOk' => false === get_option( 'edac_password_protected', false ),
'authOk' => false === (bool) get_option( 'edac_password_protected', false ),
'debug' => $debug,
'scanUrl' => get_preview_post_link(
$post_id,
Expand Down
4 changes: 2 additions & 2 deletions includes/validate.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,10 @@ function edac_validate( $post_ID, $post, $action ) {
do_action( 'edac_after_get_content', $post_ID, $content, $action );

if ( ! $content['html'] ) {
add_option( 'edac_password_protected', true );
update_option( 'edac_password_protected', true );
return;
} else {
delete_option( 'edac_password_protected' );
update_option( 'edac_password_protected', false );
}

// set record check flag on previous error records.
Expand Down

0 comments on commit 99ecef6

Please sign in to comment.