Changeset 3014866
- Timestamp:
- 12/28/2023 01:36:23 AM (2 years ago)
- Location:
- ship-depot/trunk
- Files:
-
- 4 edited
-
Ship_Depot_init.php (modified) (3 diffs)
-
helper/class-function-helper.php (modified) (1 diff)
-
includes/class-ship-depot-general.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
ship-depot/trunk/Ship_Depot_init.php
r3014505 r3014866 5 5 * Plugin URI: https://shipdepot.vn/ 6 6 * Description: Ship Depot support shipping couriers in Vietnam like GHN, GHTK, AhaMove. 7 * Version: 1.2. 77 * Version: 1.2.8 8 8 * Author: ShipDepot.vn 9 9 * Text Domain: ship-depot-translate … … 35 35 36 36 if (!defined('SHIP_DEPOT_VERSION')) { 37 define('SHIP_DEPOT_VERSION', '1.2. 7');37 define('SHIP_DEPOT_VERSION', '1.2.8'); 38 38 } 39 39 … … 132 132 add_action('plugins_loaded', 'ship_depot_plugins_loaded'); 133 133 } 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 396 396 public static function IsHPOS(): bool 397 397 { 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 { 407 410 return false; 408 411 } -
ship-depot/trunk/includes/class-ship-depot-general.php
r3014505 r3014866 45 45 private function autoload() 46 46 { 47 48 47 // 49 48 require_once SHIP_DEPOT_DIR_PATH . 'helper/class-ship-depot-log.php'; … … 516 515 if (is_multisite()) { 517 516 $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)); 519 518 $vf_plugin = reset($fl_array); 520 519 } else { 521 520 $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); 523 522 if (count($fl_array) > 0) { 524 523 $vf_plugin = $plugins[key($fl_array)]; -
ship-depot/trunk/readme.txt
r3014505 r3014866 5 5 Tested up to: 6.4.2 6 6 Requires PHP: 7.4.3 7 Stable tag: 1.2. 77 Stable tag: 1.2.8 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 65 65 66 66 == 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 67 70 = 1.2.7 = 68 71 * Sửa một số lỗi nhỏ.
Note: See TracChangeset
for help on using the changeset viewer.