Skip to content

Commit 6cee446

Browse files
Merge pull request #48 from godaddy-wordpress/mwc-11021/add-hpos-compatibility
HPOS support in Product Customizer
2 parents a9f0407 + b6b3467 commit 6cee446

File tree

5 files changed

+54
-8
lines changed

5 files changed

+54
-8
lines changed

.editorconfig

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# This file is for unifying the coding style for different editors and IDEs
2+
# editorconfig.org
3+
4+
# WordPress Coding Standards
5+
# http://make.wordpress.org/core/handbook/coding-standards/
6+
7+
root = true
8+
9+
[*]
10+
charset = utf-8
11+
end_of_line = lf
12+
insert_final_newline = true
13+
trim_trailing_whitespace = true
14+
indent_style = tab
15+
16+
[{.jshintrc,*.json,*.toml,*.yml}]
17+
indent_style = space
18+
indent_size = 2
19+
20+
[{*.txt}]
21+
end_of_line = crlf

includes/class-wc-customizer-integrations.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
* needs please refer to http://www.skyverge.com/product/woocommerce-customizer/ for more information.
1818
*
1919
* @author SkyVerge
20-
* @copyright Copyright (c) 2013-2022, SkyVerge, Inc. ([email protected])
20+
* @copyright Copyright (c) 2013-2023, SkyVerge, Inc. ([email protected])
2121
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
2222
*/
2323

includes/class-wc-customizer-settings.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
* needs please refer to http://www.skyverge.com/product/woocommerce-customizer/ for more information.
1818
*
1919
* @author SkyVerge
20-
* @copyright Copyright (c) 2013-2022, SkyVerge, Inc. ([email protected])
20+
* @copyright Copyright (c) 2013-2023, SkyVerge, Inc. ([email protected])
2121
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
2222
*/
2323

readme.txt

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@
22
Contributors: SkyVerge, maxrice, tamarazuk, chasewiseman, nekojira, beka.rice
33
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&[email protected]&item_name=Donation+for+WooCommerce+Customizer
44
Tags: woocommerce, woocommerce shop, woocommerce filters, woocommerce text
5-
Requires at least: 4.7
5+
Requires at least: 5.6
6+
Requires PHP: 7.4
67
Tested up to: 6.0.1
7-
Stable tag: 2.7.7
8+
Stable tag: 2.8.0-dev.1
89
License: GPLv3 or later
910
License URI: http://www.gnu.org/licenses/gpl-3.0.html
1011

@@ -71,6 +72,10 @@ Of course! Please fork the [GitHub](https://github.com/skyverge/woocommerce-cust
7172

7273
== Changelog ==
7374

75+
= 2023.nn.nn - version 2.8.0-dev.1 =
76+
* Misc - Add compatibility for WooCommerce High Performance Order Storage (HPOS)
77+
* Misc - Require PHP 7.4 and WordPress 5.6
78+
7479
= 2022.07.31 - version 2.7.7 =
7580
* Misc - Rename to Customizer for WooCommerce
7681

woocommerce-customizer.php

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,17 @@
55
* Description: Customize WooCommerce without code! Easily change add to cart button text and more.
66
* Author: SkyVerge
77
* Author URI: http://www.skyverge.com
8-
* Version: 2.7.7
8+
* Version: 2.8.0-dev.1
99
* Text Domain: woocommerce-customizer
1010
* Domain Path: /i18n/languages/
1111
*
12-
* Copyright: (c) 2013-2022, SkyVerge, Inc. ([email protected])
12+
* Copyright: (c) 2013-2023, SkyVerge, Inc. ([email protected])
1313
*
1414
* License: GNU General Public License v3.0
1515
* License URI: http://www.gnu.org/licenses/gpl-3.0.html
1616
*
1717
* @author SkyVerge
18-
* @copyright Copyright (c) 2013-2022, SkyVerge, Inc. ([email protected])
18+
* @copyright Copyright (c) 2013-2023, SkyVerge, Inc. ([email protected])
1919
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0
2020
*
2121
* WC requires at least: 3.9.4
@@ -46,7 +46,7 @@ class WC_Customizer {
4646

4747

4848
/** plugin version number */
49-
const VERSION = '2.7.7';
49+
const VERSION = '2.8.0';
5050

5151
/** required WooCommerce version number */
5252
const MIN_WOOCOMMERCE_VERSION = '3.9.4';
@@ -90,6 +90,26 @@ public function __construct() {
9090
$this->includes();
9191

9292
add_action( 'woocommerce_init', array( $this, 'load_customizations' ) );
93+
94+
// handle HPOS compatibility
95+
add_action( 'before_woocommerce_init', [ $this, 'handle_hpos_compatibility' ] );
96+
}
97+
98+
99+
/**
100+
* Declares HPOS compatibility.
101+
*
102+
* @since 1.8.0-dev.1
103+
*
104+
* @internal
105+
*
106+
* @return void
107+
*/
108+
public function handle_hpos_compatibility()
109+
{
110+
if ( class_exists(\Automattic\WooCommerce\Utilities\FeaturesUtil::class ) ) {
111+
\Automattic\WooCommerce\Utilities\FeaturesUtil::declare_compatibility( 'custom_order_tables', plugin_basename( __FILE__ ), true );
112+
}
93113
}
94114

95115

0 commit comments

Comments
 (0)