Skip to content

Commit

Permalink
packaged version 4.27.1 (#348)
Browse files Browse the repository at this point in the history
  • Loading branch information
MlKilderkin committed Apr 20, 2022
1 parent 69be18d commit d7631d7
Show file tree
Hide file tree
Showing 9 changed files with 31 additions and 21 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

## [4.27.1]

### Fixed
- Fixed the issue with products data fetch that prevented the correct import and allows import of only the first 10 products

## [4.27.0]

### Added
Expand Down Expand Up @@ -1738,6 +1743,7 @@
in fact, reset postdata, so far as Gutenberg 3.2.0 is concerned.


[4.27.1]: https://github.com/bigcommerce/bigcommerce-for-wordpress/compare/4.27.0...4.27.1
[4.27.0]: https://github.com/bigcommerce/bigcommerce-for-wordpress/compare/4.26.1...4.27.0
[4.26.1]: https://github.com/bigcommerce/bigcommerce-for-wordpress/compare/4.26.0...4.26.1
[4.26.0]: https://github.com/bigcommerce/bigcommerce-for-wordpress/compare/4.25.0...4.26.0
Expand Down
2 changes: 1 addition & 1 deletion bigcommerce.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Plugin Name: BigCommerce for WordPress
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.
Author: BigCommerce
Version: 4.27.0
Version: 4.27.1
Author URI: https://www.bigcommerce.com/wordpress
Requires PHP: 7.4.0
Text Domain: bigcommerce
Expand Down
2 changes: 1 addition & 1 deletion build-timestamp.php
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
<?php
define('BIGCOMMERCE_ASSETS_BUILD_TIMESTAMP', '4.46.04.18.2022');
define('BIGCOMMERCE_ASSETS_BUILD_TIMESTAMP', '7.48.04.19.2022');
2 changes: 1 addition & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Contributors: bigcommerce, moderntribe, jbrinley, becomevocal, vincentlistrani,
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
Requires at least: 5.2
Tested up to: 5.9.2
Stable tag: 4.27.0
Stable tag: 4.27.1
Requires PHP: 7.4.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Expand Down
12 changes: 8 additions & 4 deletions src/BigCommerce/Import/Processors/Product_Data_Fetcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,15 @@ public function run() {
do_action( 'bigcommerce/log', Error_Log::DEBUG, $e->getTraceAsString(), [] );

return;
} catch ( \InvalidArgumentException $e ) {
} catch ( \Exception $e ) {
do_action( 'bigcommerce/import/error', $e->getMessage(), [] );
do_action( 'bigcommerce/log', Error_Log::DEBUG, $e->getTraceAsString(), [] );
do_action( 'bigcommerce/log', Error_Log::DEBUG, __( 'Chunk failed. Finish chunk processing and move to next chunk', 'bigcommerce' ), [
'limit' => $this->limit,
'ids' => $product_ids,
] );

$this->fetch_end( $next, $status );
$this->fetch_end( $next, $status, $chunks );

return;
}
Expand Down Expand Up @@ -168,10 +172,10 @@ public function run() {
*/
do_action( 'bigcommerce/import/fetched_products', $count, $products_response );

$this->fetch_end( $next, $status );
$this->fetch_end( $next, $status, $chunks );
}

private function fetch_end( $next, $status ) {
private function fetch_end( $next, $status, $chunks ) {
$next ++;
if ( ! empty( $chunks[ $next ] ) ) {
do_action( 'bigcommerce/log', Error_Log::DEBUG, __( 'Ready for next page of products', 'bigcommerce' ), [
Expand Down
2 changes: 1 addition & 1 deletion src/BigCommerce/Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
namespace BigCommerce;

class Plugin {
const VERSION = '4.27.0';
const VERSION = '4.27.1';

protected static $_instance;

Expand Down
2 changes: 1 addition & 1 deletion vendor/autoload.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

require_once __DIR__ . '/composer/autoload_real.php';

return ComposerAutoloaderInit20bda62d8c74d68a256c8b8253530c0b::getLoader();
return ComposerAutoloaderInita17f01c806497ab3b4c001c6cdee5a72::getLoader();
14 changes: 7 additions & 7 deletions vendor/composer/autoload_real.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

// autoload_real.php @generated by Composer

class ComposerAutoloaderInit20bda62d8c74d68a256c8b8253530c0b
class ComposerAutoloaderInita17f01c806497ab3b4c001c6cdee5a72
{
private static $loader;

Expand All @@ -19,15 +19,15 @@ public static function getLoader()
return self::$loader;
}

spl_autoload_register(array('ComposerAutoloaderInit20bda62d8c74d68a256c8b8253530c0b', 'loadClassLoader'), true, true);
spl_autoload_register(array('ComposerAutoloaderInita17f01c806497ab3b4c001c6cdee5a72', 'loadClassLoader'), true, true);
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
spl_autoload_unregister(array('ComposerAutoloaderInit20bda62d8c74d68a256c8b8253530c0b', 'loadClassLoader'));
spl_autoload_unregister(array('ComposerAutoloaderInita17f01c806497ab3b4c001c6cdee5a72', 'loadClassLoader'));

$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
if ($useStaticLoader) {
require_once __DIR__ . '/autoload_static.php';

call_user_func(\Composer\Autoload\ComposerStaticInit20bda62d8c74d68a256c8b8253530c0b::getInitializer($loader));
call_user_func(\Composer\Autoload\ComposerStaticInita17f01c806497ab3b4c001c6cdee5a72::getInitializer($loader));
} else {
$classMap = require __DIR__ . '/autoload_classmap.php';
if ($classMap) {
Expand All @@ -39,19 +39,19 @@ public static function getLoader()
$loader->register(true);

if ($useStaticLoader) {
$includeFiles = Composer\Autoload\ComposerStaticInit20bda62d8c74d68a256c8b8253530c0b::$files;
$includeFiles = Composer\Autoload\ComposerStaticInita17f01c806497ab3b4c001c6cdee5a72::$files;
} else {
$includeFiles = require __DIR__ . '/autoload_files.php';
}
foreach ($includeFiles as $fileIdentifier => $file) {
composerRequire20bda62d8c74d68a256c8b8253530c0b($fileIdentifier, $file);
composerRequirea17f01c806497ab3b4c001c6cdee5a72($fileIdentifier, $file);
}

return $loader;
}
}

function composerRequire20bda62d8c74d68a256c8b8253530c0b($fileIdentifier, $file)
function composerRequirea17f01c806497ab3b4c001c6cdee5a72($fileIdentifier, $file)
{
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
require $file;
Expand Down
10 changes: 5 additions & 5 deletions vendor/composer/autoload_static.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace Composer\Autoload;

class ComposerStaticInit20bda62d8c74d68a256c8b8253530c0b
class ComposerStaticInita17f01c806497ab3b4c001c6cdee5a72
{
public static $files = array (
'5255c38a0faeba867671b61dfda6d864' => __DIR__ . '/..' . '/paragonie/random_compat/lib/random.php',
Expand Down Expand Up @@ -1139,10 +1139,10 @@ class ComposerStaticInit20bda62d8c74d68a256c8b8253530c0b
public static function getInitializer(ClassLoader $loader)
{
return \Closure::bind(function () use ($loader) {
$loader->prefixLengthsPsr4 = ComposerStaticInit20bda62d8c74d68a256c8b8253530c0b::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInit20bda62d8c74d68a256c8b8253530c0b::$prefixDirsPsr4;
$loader->prefixesPsr0 = ComposerStaticInit20bda62d8c74d68a256c8b8253530c0b::$prefixesPsr0;
$loader->classMap = ComposerStaticInit20bda62d8c74d68a256c8b8253530c0b::$classMap;
$loader->prefixLengthsPsr4 = ComposerStaticInita17f01c806497ab3b4c001c6cdee5a72::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInita17f01c806497ab3b4c001c6cdee5a72::$prefixDirsPsr4;
$loader->prefixesPsr0 = ComposerStaticInita17f01c806497ab3b4c001c6cdee5a72::$prefixesPsr0;
$loader->classMap = ComposerStaticInita17f01c806497ab3b4c001c6cdee5a72::$classMap;

}, null, ClassLoader::class);
}
Expand Down

0 comments on commit d7631d7

Please sign in to comment.