Skip to content

Commit

Permalink
Updates to 3.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Woo committed Aug 23, 2024
1 parent 3d7300f commit f8f78d0
Show file tree
Hide file tree
Showing 8 changed files with 122 additions and 105 deletions.
3 changes: 3 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
*** Table Rate Shipping Changelog ***

2024-08-22 - version 3.3.1
* Tweak - Using namespace for new classes.

2024-07-16 - version 3.3.0
* Add - Compatibility with WooPayments Multi-currency tool.

Expand Down
9 changes: 8 additions & 1 deletion includes/class-blocks-integration.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,17 @@
* @package WooCommerce_Table_Rate_Shipping
*/

defined( 'ABSPATH' ) || exit;
namespace WooCommerce\Shipping\Table_Rate;

if ( ! defined( 'ABSPATH' ) ) {
exit;
}

use Automattic\WooCommerce\Blocks\Integrations\IntegrationInterface;

/**
* Class for WooCommerce Blocks integration.
*/
class Blocks_Integration implements IntegrationInterface {

/**
Expand Down
7 changes: 7 additions & 0 deletions includes/class-store-api-extension.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,16 @@
* @package WooCommerce_Table_Rate_Shipping
*/

namespace WooCommerce\Shipping\Table_Rate;

if ( ! defined( 'ABSPATH' ) ) {
exit;
}

use Automattic\WooCommerce\StoreApi\StoreApi;
use Automattic\WooCommerce\StoreApi\Schemas\ExtendSchema;
use Automattic\WooCommerce\StoreApi\Schemas\V1\CartSchema;
use WC_Table_Rate_Shipping;

/**
* Store API Extension.
Expand Down
2 changes: 0 additions & 2 deletions includes/class-wc-shipping-table-rate.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
* @package WooCommerce_Table_Rate_Shipping
*/

require_once WC_TABLE_RATE_SHIPPING_MAIN_ABSPATH . 'includes/class-helpers.php';

use WooCommerce\Shipping\Table_Rate\Helpers;

if ( ! defined( 'ABSPATH' ) ) {
Expand Down
4 changes: 4 additions & 0 deletions includes/class-wc-table-rate-shipping.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
exit;
}

use WooCommerce\Shipping\Table_Rate\Store_API_Extension;
use WooCommerce\Shipping\Table_Rate\Blocks_Integration;

/**
* Main Class.
*/
Expand Down Expand Up @@ -103,6 +106,7 @@ public function init() {
return;
}

require_once WC_TABLE_RATE_SHIPPING_MAIN_ABSPATH . 'includes/class-helpers.php';
include_once WC_TABLE_RATE_SHIPPING_MAIN_ABSPATH . 'includes/functions-ajax.php';
include_once WC_TABLE_RATE_SHIPPING_MAIN_ABSPATH . 'includes/functions-admin.php';

Expand Down
2 changes: 0 additions & 2 deletions includes/functions-admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
* @package WooCommerce_Table_Rate_Shipping
*/

require_once WC_TABLE_RATE_SHIPPING_MAIN_ABSPATH . 'includes/class-helpers.php';

use WooCommerce\Shipping\Table_Rate\Helpers;

if ( ! defined( 'ABSPATH' ) ) {
Expand Down
Loading

0 comments on commit f8f78d0

Please sign in to comment.