Skip to content

Commit f8f78d0

Browse files
author
Woo
committed
Updates to 3.3.1
1 parent 3d7300f commit f8f78d0

8 files changed

+122
-105
lines changed

changelog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
*** Table Rate Shipping Changelog ***
22

3+
2024-08-22 - version 3.3.1
4+
* Tweak - Using namespace for new classes.
5+
36
2024-07-16 - version 3.3.0
47
* Add - Compatibility with WooPayments Multi-currency tool.
58

includes/class-blocks-integration.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,17 @@
55
* @package WooCommerce_Table_Rate_Shipping
66
*/
77

8-
defined( 'ABSPATH' ) || exit;
8+
namespace WooCommerce\Shipping\Table_Rate;
9+
10+
if ( ! defined( 'ABSPATH' ) ) {
11+
exit;
12+
}
913

1014
use Automattic\WooCommerce\Blocks\Integrations\IntegrationInterface;
1115

16+
/**
17+
* Class for WooCommerce Blocks integration.
18+
*/
1219
class Blocks_Integration implements IntegrationInterface {
1320

1421
/**

includes/class-store-api-extension.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,16 @@
77
* @package WooCommerce_Table_Rate_Shipping
88
*/
99

10+
namespace WooCommerce\Shipping\Table_Rate;
11+
12+
if ( ! defined( 'ABSPATH' ) ) {
13+
exit;
14+
}
15+
1016
use Automattic\WooCommerce\StoreApi\StoreApi;
1117
use Automattic\WooCommerce\StoreApi\Schemas\ExtendSchema;
1218
use Automattic\WooCommerce\StoreApi\Schemas\V1\CartSchema;
19+
use WC_Table_Rate_Shipping;
1320

1421
/**
1522
* Store API Extension.

includes/class-wc-shipping-table-rate.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
* @package WooCommerce_Table_Rate_Shipping
66
*/
77

8-
require_once WC_TABLE_RATE_SHIPPING_MAIN_ABSPATH . 'includes/class-helpers.php';
9-
108
use WooCommerce\Shipping\Table_Rate\Helpers;
119

1210
if ( ! defined( 'ABSPATH' ) ) {

includes/class-wc-table-rate-shipping.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
exit;
1010
}
1111

12+
use WooCommerce\Shipping\Table_Rate\Store_API_Extension;
13+
use WooCommerce\Shipping\Table_Rate\Blocks_Integration;
14+
1215
/**
1316
* Main Class.
1417
*/
@@ -103,6 +106,7 @@ public function init() {
103106
return;
104107
}
105108

109+
require_once WC_TABLE_RATE_SHIPPING_MAIN_ABSPATH . 'includes/class-helpers.php';
106110
include_once WC_TABLE_RATE_SHIPPING_MAIN_ABSPATH . 'includes/functions-ajax.php';
107111
include_once WC_TABLE_RATE_SHIPPING_MAIN_ABSPATH . 'includes/functions-admin.php';
108112

includes/functions-admin.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
* @package WooCommerce_Table_Rate_Shipping
66
*/
77

8-
require_once WC_TABLE_RATE_SHIPPING_MAIN_ABSPATH . 'includes/class-helpers.php';
9-
108
use WooCommerce\Shipping\Table_Rate\Helpers;
119

1210
if ( ! defined( 'ABSPATH' ) ) {

0 commit comments

Comments
 (0)