Skip to content

Commit 5a12b81

Browse files
authored
packaged version 4.22.0 (#323)
Co-authored-by: Mykhailo Los <[email protected]>
1 parent da43470 commit 5a12b81

30 files changed

+379
-81
lines changed

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
# Changelog
22

3+
## [4.22.0]
4+
5+
### Added
6+
- Added ability to enable or disable sub-categories in navigation menu. The option can be changed in Customizer > BigCommerce > Product Category > Menus. Sub categories are hidden from menu by default
7+
- Added ability to abort import process. In order to do that go to Bigcommerce > Settings > Diagnostics and click on the "Abort Product Import" button
8+
9+
### Fixed
10+
- Fixed 500 issue on the REST API endpoint for the product review
11+
- Fixed PHP notice appearance when get_terms return boolean result during category fetching
12+
- Added an error handling for situation when import task is missing
13+
314
## [4.21.0]
415

516
### Changed
@@ -1668,6 +1679,7 @@
16681679
in fact, reset postdata, so far as Gutenberg 3.2.0 is concerned.
16691680

16701681

1682+
[4.22.0]: https://github.com/bigcommerce/bigcommerce-for-wordpress/compare/4.21.1...4.22.0
16711683
[4.21.0]: https://github.com/bigcommerce/bigcommerce-for-wordpress/compare/4.20.1...4.21.0
16721684
[4.20.1]: https://github.com/bigcommerce/bigcommerce-for-wordpress/compare/4.20.0...4.20.1
16731685
[4.20.0]: https://github.com/bigcommerce/bigcommerce-for-wordpress/compare/4.19.1...4.20.0

assets/css/bc-admin.css

Lines changed: 9 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/css/bc-admin.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/js/dist/admin/scripts.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/js/dist/admin/scripts.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/js/src/admin/settings/product-sync.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ const state = {
1919
syncCompleted: false,
2020
syncError: false,
2121
pollingDelay: 1000,
22+
isAborted: false,
2223
};
2324

2425
/**
@@ -48,7 +49,13 @@ const importSuccess = (node, icon, response = '') => {
4849
messageWrapper.innerHTML = importCloseButton;
4950
tools.removeClass(icon, 'icon-bc-sync');
5051
tools.addClass(icon, 'icon-bc-check');
51-
tools.addClass(el.container, 'bigcommerce-notice__import-status--success');
52+
53+
if (!state.isAborted) {
54+
tools.addClass(el.container, 'bigcommerce-notice__import-status--success');
55+
} else {
56+
tools.addClass(el.container, 'bigcommerce-notice__import-status--warning');
57+
}
58+
5259
node.textContent = response;
5360
};
5461

@@ -221,6 +228,7 @@ const pollProductSyncWatcher = () => {
221228
} else if (data.status === 'not_started') {
222229
// The import is done.
223230
state.syncCompleted = true;
231+
state.isAborted = !!data.aborted;
224232
if (data.previous !== 'failed') {
225233
// The sync has not failed and still contains a status response.
226234
handleStatusMessage(data.products.status);

assets/pcss/admin/pages/settings/_plugin-notices.pcss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,12 @@ p.bigcommerce-notice__refresh {
8383
align-items: center;
8484
}
8585

86+
&.bigcommerce-notice__import-status--warning {
87+
background-color: var(--color-bc-red);
88+
align-content: center;
89+
align-items: center;
90+
}
91+
8692
&.bigcommerce-notice__import-status--error {
8793
border: 1px solid var(--color-bc-red);
8894
background-color: var(--color-white);

bigcommerce.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Plugin Name: BigCommerce for WordPress
44
Description: Scale your ecommerce business with WordPress on the front-end and BigCommerce on the back end. Free up server resources from things like catalog management, processing payments, and managing fulfillment logistics.
55
Author: BigCommerce
6-
Version: 4.21.0
6+
Version: 4.22.0
77
Author URI: https://www.bigcommerce.com/wordpress
88
Requires PHP: 7.4.0
99
Text Domain: bigcommerce

build-timestamp.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
<?php
2-
define('BIGCOMMERCE_ASSETS_BUILD_TIMESTAMP', '5.30.11.29.2021');
2+
define('BIGCOMMERCE_ASSETS_BUILD_TIMESTAMP', '4.45.12.17.2021');

readme.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Contributors: bigcommerce, moderntribe, jbrinley, becomevocal, vincentlistrani,
33
Tags: ecommerce, online store, sell online, storefront, retail, online shop, bigcommerce, big commerce, e-commerce, physical products, buy buttons, commerce, shopping cart, checkout, cart, shop, headless commerce, shipping, payments, fulfillment
44
Requires at least: 5.2
55
Tested up to: 5.8.1
6-
Stable tag: 4.21.0
6+
Stable tag: 4.22.0
77
Requires PHP: 7.4.0
88
License: GPLv2 or later
99
License URI: https://www.gnu.org/licenses/gpl-2.0.html

0 commit comments

Comments
 (0)