Plugin Directory

Changeset 2657027


Ignore:
Timestamp:
01/13/2022 08:17:47 AM (4 years ago)
Author:
upress
Message:

update v1.4

Location:
enable-accessibility
Files:
15 added
2 edited

Legend:

Unmodified
Added
Removed
  • enable-accessibility/trunk/enable-accessibility.php

    r2376401 r2657027  
    33 * Plugin Name: Enable Accessibility
    44 * 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.2
     5 * Version:     1.4
    66 * Author:      uPress
    77 * Author URI: https://www.upress.co.il
     
    5353            $this->plugin_slug = 'enable-accessibility';
    5454            load_plugin_textdomain( $this->plugin_slug, false, basename( dirname( __FILE__ ) ) . '/languages/' );
    55             $this->version = '1.3.2';
     55            $this->version = '1.4';
    5656
    5757            $this->kses_allowed_html = array(
     
    7777            );
    7878
    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();
    8381        }
    8482
     
    120118        }
    121119
    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         }
    127120        private function unschedule_cron() {
    128121            $timestamp = wp_next_scheduled( 'enable_update_license_data' );
     
    143136            }
    144137
    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;
    149141            }
    150142
    151143            wp_enqueue_script(
    152144                'enable-accessibility',
    153                 $js_url,
     145                $license_data->website->js,
    154146                array(),
    155147                ENABLE_ACCESSIBILITY_VERSION,
     
    255247            foreach( $this->enable_hosts as $host ) {
    256248                $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(),
    258250                    'sslverify' => false,
    259251                ) );
     
    292284            if ( empty( $lkey ) ) {
    293285                $status = 0;
    294                 $this->unschedule_cron();
    295286            } else {
    296287                $licenseData = $this->_get_license_data( $lkey );
    297                 $this->schedule_cron();
    298288                if ( $licenseData && isset( $licenseData->status ) && $licenseData->status == 'Success' ) {
    299289                    $status = 1;
     
    348338
    349339            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) {
    351341                    return sprintf(
    352342                        wp_kses(
  • enable-accessibility/trunk/readme.txt

    r2376401 r2657027  
    55Tags: accessibity, user1, WAI, WCAG, wp accessibility, accessible, widget, plugin, wordpress, access, tool, toolbar, toolkit, wordpress accessible, wordpress accessibility, sidebar, css3, נגישות, הנגשת אתר
    66Requires at least: 3.0.1
    7 Tested up to: 5.5
     7Tested up to: 5.9
    88Stable tag: trunk
    99License: GPLv2 or later
     
    5858[View our license plans on our website](https://www.enable.co.il/plans/)
    5959
     60== Screenshots ==
     611.
     62
    6063== 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
    6168= 1.3.2 =
    6269* Fix checking license
     
    7582* First stable Release.
    7683
    77 == Screenshots ==
    78 1.
     84== Upgrade Notice ==
     85= 1.4 =
     86Make 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.