Plugin Directory

Changeset 3014866


Ignore:
Timestamp:
12/28/2023 01:36:23 AM (2 years ago)
Author:
shipdepot
Message:

Update version 1.2.8

Location:
ship-depot/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • ship-depot/trunk/Ship_Depot_init.php

    r3014505 r3014866  
    55 * Plugin URI:        https://shipdepot.vn/
    66 * Description:       Ship Depot support shipping couriers in Vietnam like GHN, GHTK, AhaMove.
    7  * Version:           1.2.7
     7 * Version:           1.2.8
    88 * Author:            ShipDepot.vn
    99 * Text Domain:       ship-depot-translate
     
    3535
    3636if (!defined('SHIP_DEPOT_VERSION')) {
    37     define('SHIP_DEPOT_VERSION', '1.2.7');
     37    define('SHIP_DEPOT_VERSION', '1.2.8');
    3838}
    3939
     
    132132    add_action('plugins_loaded', 'ship_depot_plugins_loaded');
    133133}
    134 
    135 // add_action('before_woocommerce_init', function () {
    136 //     if (class_exists(\Automattic\WooCommerce\Utilities\FeaturesUtil::class)) {
    137 //         \Automattic\WooCommerce\Utilities\FeaturesUtil::declare_compatibility('custom_order_tables', __FILE__, false);
    138 //     }
    139 // });
  • ship-depot/trunk/helper/class-function-helper.php

    r2997508 r3014866  
    396396        public static function IsHPOS(): bool
    397397        {
    398 
    399             if (OrderUtil::custom_orders_table_usage_is_enabled()) {
    400                 // Ship_Depot_Logger::wrlog('HPOS usage is enabled');
    401                 // HPOS usage is enabled.
    402                 //Arrange meta boxes
    403                 return true;
    404             } else {
    405                 // Ship_Depot_Logger::wrlog('Traditional CPT-based orders are in use');
    406                 // Traditional CPT-based orders are in use.
     398            if (is_woocommerce_active()) {
     399                if (OrderUtil::custom_orders_table_usage_is_enabled()) {
     400                    // Ship_Depot_Logger::wrlog('HPOS usage is enabled');
     401                    // HPOS usage is enabled.
     402                    //Arrange meta boxes
     403                    return true;
     404                } else {
     405                    // Ship_Depot_Logger::wrlog('Traditional CPT-based orders are in use');
     406                    // Traditional CPT-based orders are in use.
     407                    return false;
     408                }
     409            } else {
    407410                return false;
    408411            }
  • ship-depot/trunk/includes/class-ship-depot-general.php

    r3014505 r3014866  
    4545    private function autoload()
    4646    {
    47 
    4847        //
    4948        require_once SHIP_DEPOT_DIR_PATH . 'helper/class-ship-depot-log.php';
     
    516515        if (is_multisite()) {
    517516            $plugins = get_site_option('active_sitewide_plugins', array());
    518             $fl_array = preg_grep("/ship-depot-translate.php$/", array_keys($plugins));
     517            $fl_array = preg_grep("/Ship_Depot_init.php$/", array_keys($plugins));
    519518            $vf_plugin = reset($fl_array);
    520519        } else {
    521520            $plugins = apply_filters('active_plugins', get_option('active_plugins', array()));
    522             $fl_array = preg_grep("/ship-depot-translate.php$/", $plugins);
     521            $fl_array = preg_grep("/Ship_Depot_init.php$/", $plugins);
    523522            if (count($fl_array) > 0) {
    524523                $vf_plugin = $plugins[key($fl_array)];
  • ship-depot/trunk/readme.txt

    r3014505 r3014866  
    55Tested up to: 6.4.2
    66Requires PHP: 7.4.3
    7 Stable tag: 1.2.7
     7Stable tag: 1.2.8
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    6565
    6666== Changelog ==
     67= 1.2.8 =
     68* Thêm chức năng tự động Ngừng kích hoạt (Deactive) plugin Ship Depot sau khi Ngừng kích hoạt plugin WooCommerce (Deactive).
     69
    6770= 1.2.7 =
    6871* Sửa một số lỗi nhỏ.
Note: See TracChangeset for help on using the changeset viewer.