Changeset 3235362
- Timestamp:
- 02/05/2025 11:58:35 AM (13 months ago)
- Location:
- accessibe/trunk
- Files:
-
- 3 edited
-
accessibe.php (modified) (1 diff)
-
class.accessibeforwp.php (modified) (9 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
accessibe/trunk/accessibe.php
r3231917 r3235362 4 4 * Plugin URI: https://accessibe.com/ 5 5 * Description: accessiBe is the #1 fully automated web accessibility solution. Protect your website from lawsuits and increase your potential audience. 6 * Version: 2. 46 * Version: 2.5 7 7 * Author: accessiBe 8 8 * Author URI: https://accessibe.com/ -
accessibe/trunk/class.accessibeforwp.php
r3231917 r3235362 28 28 'mobileTriggerOffsetY' => '10', 29 29 'statementLink' => '', 30 'footerHtml' => '', 30 31 ]; 31 32 … … 51 52 'mobileTriggerOffsetY' => 10, 52 53 'statementLink' => '', 54 'footerHtml' => '', 53 55 ]; 54 56 … … 83 85 84 86 /* Register settings */ 85 // add_action('admin_init', array('AccessibeWp', 'accessibe_register_settings'));87 add_action('plugins_loaded', array('AccessibeWp', 'manage_redirect')); 86 88 87 89 /* Render js in footer */ … … 128 130 } // accessibe_init_hooks 129 131 132 133 public static function manage_redirect() { 134 $old_page_slug = 'accessiBe'; // Slug for the old settings page 135 136 if (isset($_GET['page']) && $_GET['page'] === $old_page_slug && strpos($_SERVER['REQUEST_URI'], 'options-general.php') !== false) { 137 wp_redirect(admin_url('admin.php?page=accessibe')); 138 exit(); 139 } 140 } 130 141 131 142 /** … … 277 288 } 278 289 279 $active_license_id = $current_user_options->activeLicenseId;280 290 // Conditionally add fields if isLoggedIn is true 281 291 if (isset($current_user_options->activeLicenseId) && isset($current_user_options->licenses) && $current_user_options->activeLicenseId != '') { 292 $active_license_id = $current_user_options->activeLicenseId; 282 293 $detail['licenseId'] = $current_user_options->licenses->$active_license_id->licenseId; 283 294 $detail['widgetStatus'] = $current_user_options->licenses->$active_license_id->widgetStatus; … … 380 391 $modified_status = true; 381 392 if(!empty($old_data)) { 382 // $modified_status = $data_decoded->newLicense ? true : 'enabled' == $old_data['accessibe']; 383 $modified_config = self::modify_old_data($old_data); 393 if(!is_array($old_data)) { 394 $old_data = array(); 395 } 396 else{ 397 // $modified_status = $data_decoded->newLicense ? true : 'enabled' == $old_data['accessibe']; 398 $modified_config = self::modify_old_data($old_data); 399 } 384 400 delete_option(ACCESSIBE_WP_OLD_OPTIONS_KEY); 385 401 } … … 565 581 if(empty($accessibe_options) || !isset($accessibe_options['script'])) { 566 582 $older_options = get_option(ACCESSIBE_WP_OLD_OPTIONS_KEY, array()); 583 if (!is_array($older_options)) { 584 $older_options = array(); 585 } 567 586 $accessibe_options = array_merge($accessibe_options, $older_options); 568 587 } … … 711 730 $plugin_basename = ACCESSIBE_WP_BASENAME; 712 731 732 error_log(json_encode($hook_extra)); 733 713 734 // Check if the hook involves updating plugins. 714 735 if ( … … 751 772 // Check if the plugin was recently updated. 752 773 $previous_version = get_transient('accessibe_previous_version'); 774 error_log($previous_version); 753 775 if ($previous_version) { 754 776 // Delete the transient after fetching its value. -
accessibe/trunk/readme.txt
r3231917 r3235362 4 4 Requires at least: 4.7 5 5 Tested up to: 6.7 6 Stable tag: 2. 46 Stable tag: 2.5 7 7 Requires PHP: 7.0 8 8 License: GPLv2 or later … … 68 68 69 69 == Changelog == 70 = v2.5 = 71 * 2025-02-05 72 * Bug fixes 73 70 74 = v2.4 = 71 75 * 2025-01-30
Note: See TracChangeset
for help on using the changeset viewer.