Changeset 2657027
- Timestamp:
- 01/13/2022 08:17:47 AM (4 years ago)
- Location:
- enable-accessibility
- Files:
-
- 15 added
- 2 edited
-
tags/1.4 (added)
-
tags/1.4/LICENSE.txt (added)
-
tags/1.4/assets (added)
-
tags/1.4/assets/css (added)
-
tags/1.4/assets/css/admin-style.css (added)
-
tags/1.4/assets/images (added)
-
tags/1.4/enable-accessibility.php (added)
-
tags/1.4/includes (added)
-
tags/1.4/includes/accessibility-attachments-alt.php (added)
-
tags/1.4/includes/accessibility-settings.php (added)
-
tags/1.4/includes/class-accesibility-loader.php (added)
-
tags/1.4/languages (added)
-
tags/1.4/languages/enable-accessibility-he_IL.mo (added)
-
tags/1.4/languages/enable-accessibility-he_IL.po (added)
-
tags/1.4/readme.txt (added)
-
trunk/enable-accessibility.php (modified) (8 diffs)
-
trunk/readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
enable-accessibility/trunk/enable-accessibility.php
r2376401 r2657027 3 3 * Plugin Name: Enable Accessibility 4 4 * Description: Enable Accessibility is a beautiful Advanced Toolbar that gives you great tools for fixing a common accessibility problems in WordPress themes.. 5 * Version: 1. 3.25 * Version: 1.4 6 6 * Author: uPress 7 7 * Author URI: https://www.upress.co.il … … 53 53 $this->plugin_slug = 'enable-accessibility'; 54 54 load_plugin_textdomain( $this->plugin_slug, false, basename( dirname( __FILE__ ) ) . '/languages/' ); 55 $this->version = '1. 3.2';55 $this->version = '1.4'; 56 56 57 57 $this->kses_allowed_html = array( … … 77 77 ); 78 78 79 // schedule cron only if we have a license key set 80 if ( get_option( 'enable-accessibility' ) ) { 81 $this->schedule_cron(); 82 } 79 // make sure we don't have a cron scheduled, we don't use it anymore 80 $this->unschedule_cron(); 83 81 } 84 82 … … 120 118 } 121 119 122 private function schedule_cron() {123 if ( ! wp_next_scheduled( 'enable_update_license_data' ) ) {124 wp_schedule_event( time(), 'daily', 'enable_update_license_data' );125 }126 }127 120 private function unschedule_cron() { 128 121 $timestamp = wp_next_scheduled( 'enable_update_license_data' ); … … 143 136 } 144 137 145 if ( $license_data && ! empty( $license_data->website->js ) ) { 146 $js_url = $license_data->website->js; 147 } else { 148 $js_url = "https://cdn.{$this->enable_hosts[1]}/licenses/init.js"; 138 // if we don't have a valid license then we don't include the js file 139 if ( !$license_data || empty( $license_data->website->js ) ) { 140 return; 149 141 } 150 142 151 143 wp_enqueue_script( 152 144 'enable-accessibility', 153 $ js_url,145 $license_data->website->js, 154 146 array(), 155 147 ENABLE_ACCESSIBILITY_VERSION, … … 255 247 foreach( $this->enable_hosts as $host ) { 256 248 $response = wp_safe_remote_get( "https://my.{$host}/modules/addons/goenable/api.php?litk=" . urlencode( $lkey ) . "&r=" . urlencode( site_url() ), array( 257 'user-agent' => 'enable-accessibility/' . ENABLE_ACCESSIBILITY_VERSION ,249 'user-agent' => 'enable-accessibility/' . ENABLE_ACCESSIBILITY_VERSION . ';' . site_url(), 258 250 'sslverify' => false, 259 251 ) ); … … 292 284 if ( empty( $lkey ) ) { 293 285 $status = 0; 294 $this->unschedule_cron();295 286 } else { 296 287 $licenseData = $this->_get_license_data( $lkey ); 297 $this->schedule_cron();298 288 if ( $licenseData && isset( $licenseData->status ) && $licenseData->status == 'Success' ) { 299 289 $status = 1; … … 348 338 349 339 if ( isset( $license_data->data->nextduedate ) ) { 350 if( '0000-00-00' === $license_data->data->nextduedate) {340 if(true || '0000-00-00' === $license_data->data->nextduedate) { 351 341 return sprintf( 352 342 wp_kses( -
enable-accessibility/trunk/readme.txt
r2376401 r2657027 5 5 Tags: accessibity, user1, WAI, WCAG, wp accessibility, accessible, widget, plugin, wordpress, access, tool, toolbar, toolkit, wordpress accessible, wordpress accessibility, sidebar, css3, נגישות, הנגשת אתר 6 6 Requires at least: 3.0.1 7 Tested up to: 5. 57 Tested up to: 5.9 8 8 Stable tag: trunk 9 9 License: GPLv2 or later … … 58 58 [View our license plans on our website](https://www.enable.co.il/plans/) 59 59 60 == Screenshots == 61 1. 62 60 63 == Changelog == 64 = 1.4 = 65 * Remove useless license check cron 66 * Require the license key to be set in the settings to load the toolbar 67 61 68 = 1.3.2 = 62 69 * Fix checking license … … 75 82 * First stable Release. 76 83 77 == Screenshots == 78 1. 84 == Upgrade Notice == 85 = 1.4 = 86 Make sure to fill your license key in the plugin settings, the Enable Accessibility Toolbar will not load without it.
Note: See TracChangeset
for help on using the changeset viewer.