Skip to content
Snippets Groups Projects
Commit a35de9c2 authored by Reinhold Kainhofer's avatar Reinhold Kainhofer
Browse files

Go live with disabling legacy classes when no old legacy methods exits

parent cc118a5b
No related branches found
No related tags found
No related merge requests found
...@@ -287,6 +287,6 @@ WooCommerce_Shipping_By_Rules_Advanced::instance(); ...@@ -287,6 +287,6 @@ WooCommerce_Shipping_By_Rules_Advanced::instance();
// Load the legacy plugin version IF REQUIRED! // Load the legacy plugin version IF REQUIRED!
$legacymethods = get_posts (array ('posts_per_page' => '-1', 'post_type' => 'shipping_rules')); $legacymethods = get_posts (array ('posts_per_page' => '-1', 'post_type' => 'shipping_rules'));
// if (count($legacymethods)>0) { if (count($legacymethods)>0) {
require_once( plugin_dir_path( __FILE__ ) . 'legacy-woocommerce-advanced-shipping-by-rules.php'); require_once( plugin_dir_path( __FILE__ ) . 'legacy-woocommerce-advanced-shipping-by-rules.php');
// } }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment