Plugin Directory

Changeset 3220165


Ignore:
Timestamp:
01/10/2025 11:38:00 AM (14 months ago)
Author:
anshumanja
Message:

bug fixes

Location:
accessibe/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • accessibe/trunk/accessibe.php

    r3220122 r3220165  
    44  * Plugin URI: https://accessibe.com/
    55  * Description: accessiBe is the #1 fully automated web accessibility solution. Protect your website from lawsuits and increase your potential audience.
    6   * Version: 2.2
     6  * Version: 2.2.1
    77  * Author: accessiBe
    88  * Author URI: https://accessibe.com/
  • accessibe/trunk/class.accessibeforwp.php

    r3220133 r3220165  
    510510      // Attempt to retrieve and decode options using ACCESSIBE_OPTIONS_KEY
    511511      $accessibe_options = get_option(ACCESSIBE_WP_OPTIONS_KEY, array());
     512      $isLoggedOutOnce = false;
    512513      if(!empty($accessibe_options)) {
    513514        $accessibe_options = json_decode($accessibe_options, true);
     515        $isLoggedOutOnce = $accessibe_options['isLoggedOutOnce'];
    514516      }
    515517
     
    517519      if(empty($accessibe_options) || !isset($accessibe_options['script'])) {
    518520          $accessibe_options = get_option(ACCESSIBE_WP_OLD_OPTIONS_KEY, array());
     521          $accessibe_options['isLoggedOutOnce'] = $isLoggedOutOnce;
    519522      }
    520523
     
    605608        </div>
    606609        <?php
    607         if (!isset($accessibe_options['isLoggedOutOnce'])) {
    608             $accessibe_options['isLoggedOutOnce'] = true;
    609             update_option(ACCESSIBE_WP_OPTIONS_KEY, json_encode($accessibe_options));
     610        if ($accessibe_options['isLoggedOutOnce'] != true) {
    610611           echo "<script>
    611612           window.addEventListener('message', (event) => {
     
    621622            }});
    622623           </script>";
     624           $accessibe_options['isLoggedOutOnce'] = true;
     625
     626           update_option(ACCESSIBE_WP_OPTIONS_KEY, json_encode($accessibe_options));
    623627        }
    624628        ?>
  • accessibe/trunk/readme.txt

    r3220122 r3220165  
    44Requires at least: 4.7
    55Tested up to: 6.7
    6 Stable tag: 2.2
     6Stable tag: 2.2.1
    77Requires PHP: 7.0
    88License: GPLv2 or later
     
    5858
    5959== Changelog ==
     60= v2.2.1 =
     61* 2025-01-10
     62* Bug fixes
     63
    6064= v2.2 =
    6165* 2025-01-10
Note: See TracChangeset for help on using the changeset viewer.