Plugin Directory

Changeset 2968899


Ignore:
Timestamp:
09/19/2023 08:13:25 PM (2 years ago)
Author:
pluginbazar
Message:

Fix bug

Location:
woc-open-close
Files:
230 added
2 deleted
4 edited

Legend:

Unmodified
Added
Removed
  • woc-open-close/trunk/includes/classes/class-settings.php

    r2871247 r2968899  
    3333            'product_url'         => WOOOPENCLOSE_PLUGIN_LINK,
    3434            'product_version'     => $wooopenclose_wpdk->plugin_version,
    35             'product_version_pro' => woc_pro_available() ? $wooopenclose_wpdk->license()->plugin_version : '',
     35            'product_version_pro' => '',
    3636            'quick_links'         => array(
    3737                'supports' => array(
  • woc-open-close/trunk/includes/wpdk/classes/class-client.php

    r2869639 r2968899  
    3131     */
    3232    private static $utils;
    33 
    34     /**
    35      * @var \WPDK\Notifications
    36      */
    37     private static $notifications;
    38 
    39 
    40     /**
    41      * @var \WPDK\License
    42      */
    43     private static $license;
    4433
    4534
     
    9281
    9382        return self::$utils;
    94     }
    95 
    96 
    97     /**
    98      * Return Notifications class
    99      *
    100      * @return \WPDK\Notifications
    101      */
    102     public function notifications() {
    103 
    104         if ( ! class_exists( __NAMESPACE__ . '\Notifications' ) ) {
    105             require_once __DIR__ . '/class-notifications.php';
    106         }
    107 
    108         if ( ! self::$notifications ) {
    109             self::$notifications = new Notifications( $this );
    110         }
    111 
    112         return self::$notifications;
    113     }
    114 
    115     /**
    116      * Return Notifications class
    117      *
    118      * @return \WPDK\License
    119      */
    120     public function license( $plugin_file = '' ) {
    121 
    122         if ( ! class_exists( __NAMESPACE__ . '\License' ) ) {
    123             require_once __DIR__ . '/class-license.php';
    124         }
    125 
    126         if ( ! self::$license ) {
    127             self::$license = new License( $this, $plugin_file );
    128         }
    129 
    130         return self::$license;
    13183    }
    13284
  • woc-open-close/trunk/readme.txt

    r2967797 r2968899  
    66   Tested up to: 6.3.1
    77   Tested up to WooCommerce: 8.1.1
    8    Stable tag: 4.7.4
     8   Stable tag: 4.7.5
    99   Requires PHP: 5.6
    1010   Requires WooCommerce: 3.0
     
    295295      * Compatibility Test with Latest WordPress and WooCommerce Versions
    296296
     297      = 4.7.5 =
     298      * 20/09/2023 - FIX - Bug fixed.
     299
    297300
    298301== Upgrade Notice == 
  • woc-open-close/trunk/woc-open-close.php

    r2967797 r2968899  
    44    Plugin URI: https://pluginbazar.com/plugin/woocommerce-open-close/
    55    Description: Open Close WooCommerce store automatically with predefined schedules. Stop getting orders when your store is closed.
    6     Version: 4.7.4
     6    Version: 4.7.5
    77    Text Domain: woc-open-close
    88    Author: Jaed Mosharraf & Pluginbazar Team
     
    2020defined( 'WOOOPENCLOSE_DOCS_URL' ) || define( 'WOOOPENCLOSE_DOCS_URL', 'https://docs.pluginbazar.com/plugin/open-close-woocommerce-store/' );
    2121defined( 'WOOOPENCLOSE_WP_REVIEW_URL' ) || define( 'WOOOPENCLOSE_WP_REVIEW_URL', 'https://wordpress.org/support/plugin/woc-open-close/reviews/' );
    22 defined( 'WOOOPENCLOSE_VERSION' ) || define( 'WOOOPENCLOSE_VERSION', '4.7.4' );
     22defined( 'WOOOPENCLOSE_VERSION' ) || define( 'WOOOPENCLOSE_VERSION', '4.7.5' );
    2323
    2424
     
    211211}
    212212
    213 
    214 // Update license server
    215 add_filter( 'WPDK_Settings/Filters/integration_server_woc_open_close', function () {
    216     return esc_url( 'https://pluginbazar.com' );
    217 } );
    218 
    219 // Update license secret key
    220 add_filter( 'WPDK_Settings/Filters/license_secret_key_woc_open_close', function () {
    221     return '5beed4ad27fd52.16817105';
    222 } );
    223 
    224 
    225213function wpdk_init_woc_open_close() {
    226214
     
    236224
    237225    $wooopenclose_wpdk = new WPDK\Client( esc_html( 'Store Open Close for WooCommerce' ), 'woc-open-close', 15, __FILE__ );
    238     $wooopenclose_wpdk->notifications();
    239226
    240227    do_action( 'wpdk_init_woc_open_close', $wooopenclose_wpdk );
Note: See TracChangeset for help on using the changeset viewer.