Version Description
- 2022-12-07 =
- Fix - Check for server opcache.save_comments was restored to the more lenient check used in 3.3.0.
Download this release
Release Info
Developer | automattic |
Plugin | WooCommerce Square |
Version | 3.4.1 |
Comparing to | |
See all releases |
Code changes from version 3.4.0 to 3.4.1
- changelog.txt +3 -0
- i18n/languages/woocommerce-square.pot +2 -2
- readme.txt +4 -1
- vendor/autoload.php +1 -1
- vendor/composer/InstalledVersions.php +7 -7
- vendor/composer/autoload_real.php +4 -4
- vendor/composer/autoload_static.php +5 -5
- vendor/composer/installed.php +11 -11
- woocommerce-square.php +5 -9
changelog.txt
CHANGED
@@ -1,5 +1,8 @@
|
|
1 |
*** WooCommerce Square Changelog ***
|
2 |
|
|
|
|
|
|
|
3 |
= 3.4.0 - 2022-12-05 =
|
4 |
* Add - Ability to export the Sync with Square status while exporting products.
|
5 |
* Add - Link to support forum under Sync Setting.
|
1 |
*** WooCommerce Square Changelog ***
|
2 |
|
3 |
+
= 3.4.1 - 2022-12-07 =
|
4 |
+
* Fix - Check for server opcache.save_comments was restored to the more lenient check used in 3.3.0.
|
5 |
+
|
6 |
= 3.4.0 - 2022-12-05 =
|
7 |
* Add - Ability to export the Sync with Square status while exporting products.
|
8 |
* Add - Link to support forum under Sync Setting.
|
i18n/languages/woocommerce-square.pot
CHANGED
@@ -2,10 +2,10 @@
|
|
2 |
# This file is distributed under the GNU General Public License v3.0.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: WooCommerce Square 3.4.
|
6 |
"Report-Msgid-Bugs-To: "
|
7 |
"https://wordpress.org/support/plugin/woocommerce-square\n"
|
8 |
-
"POT-Creation-Date: 2022-12-
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=utf-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
2 |
# This file is distributed under the GNU General Public License v3.0.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: WooCommerce Square 3.4.1\n"
|
6 |
"Report-Msgid-Bugs-To: "
|
7 |
"https://wordpress.org/support/plugin/woocommerce-square\n"
|
8 |
+
"POT-Creation-Date: 2022-12-07 03:13:30+00:00\n"
|
9 |
"MIME-Version: 1.0\n"
|
10 |
"Content-Type: text/plain; charset=utf-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Tags: credit card, square, woocommerce, inventory sync
|
|
4 |
Requires at least: 5.6
|
5 |
Tested up to: 6.0
|
6 |
Requires PHP: 7.2
|
7 |
-
Stable tag: 3.4.
|
8 |
License: GPLv3
|
9 |
License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
@@ -71,6 +71,9 @@ If you get stuck, you can ask for help in the [Plugin Forum](https://wordpress.o
|
|
71 |
2. The payment gateway settings.
|
72 |
|
73 |
== Changelog ==
|
|
|
|
|
|
|
74 |
= 3.4.0 - 2022-12-05 =
|
75 |
* Add - Ability to export the Sync with Square status while exporting products.
|
76 |
* Add - Link to support forum under Sync Setting.
|
4 |
Requires at least: 5.6
|
5 |
Tested up to: 6.0
|
6 |
Requires PHP: 7.2
|
7 |
+
Stable tag: 3.4.1
|
8 |
License: GPLv3
|
9 |
License URI: https://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
71 |
2. The payment gateway settings.
|
72 |
|
73 |
== Changelog ==
|
74 |
+
= 3.4.1 - 2022-12-07 =
|
75 |
+
* Fix - Check for server opcache.save_comments was restored to the more lenient check used in 3.3.0.
|
76 |
+
|
77 |
= 3.4.0 - 2022-12-05 =
|
78 |
* Add - Ability to export the Sync with Square status while exporting products.
|
79 |
* Add - Link to support forum under Sync Setting.
|
vendor/autoload.php
CHANGED
@@ -9,4 +9,4 @@ if (PHP_VERSION_ID < 50600) {
|
|
9 |
|
10 |
require_once __DIR__ . '/composer/autoload_real.php';
|
11 |
|
12 |
-
return
|
9 |
|
10 |
require_once __DIR__ . '/composer/autoload_real.php';
|
11 |
|
12 |
+
return ComposerAutoloaderInita4fb4137f1a6b354a5da34ef495a08bf::getLoader();
|
vendor/composer/InstalledVersions.php
CHANGED
@@ -28,7 +28,7 @@ class InstalledVersions
|
|
28 |
{
|
29 |
/**
|
30 |
* @var mixed[]|null
|
31 |
-
* @psalm-var array{root: array{name: string,
|
32 |
*/
|
33 |
private static $installed;
|
34 |
|
@@ -39,7 +39,7 @@ class InstalledVersions
|
|
39 |
|
40 |
/**
|
41 |
* @var array[]
|
42 |
-
* @psalm-var array<string, array{root: array{name: string,
|
43 |
*/
|
44 |
private static $installedByVendor = array();
|
45 |
|
@@ -243,7 +243,7 @@ class InstalledVersions
|
|
243 |
|
244 |
/**
|
245 |
* @return array
|
246 |
-
* @psalm-return array{name: string,
|
247 |
*/
|
248 |
public static function getRootPackage()
|
249 |
{
|
@@ -257,7 +257,7 @@ class InstalledVersions
|
|
257 |
*
|
258 |
* @deprecated Use getAllRawData() instead which returns all datasets for all autoloaders present in the process. getRawData only returns the first dataset loaded, which may not be what you expect.
|
259 |
* @return array[]
|
260 |
-
* @psalm-return array{root: array{name: string,
|
261 |
*/
|
262 |
public static function getRawData()
|
263 |
{
|
@@ -280,7 +280,7 @@ class InstalledVersions
|
|
280 |
* Returns the raw data of all installed.php which are currently loaded for custom implementations
|
281 |
*
|
282 |
* @return array[]
|
283 |
-
* @psalm-return list<array{root: array{name: string,
|
284 |
*/
|
285 |
public static function getAllRawData()
|
286 |
{
|
@@ -303,7 +303,7 @@ class InstalledVersions
|
|
303 |
* @param array[] $data A vendor/composer/installed.php data set
|
304 |
* @return void
|
305 |
*
|
306 |
-
* @psalm-param array{root: array{name: string,
|
307 |
*/
|
308 |
public static function reload($data)
|
309 |
{
|
@@ -313,7 +313,7 @@ class InstalledVersions
|
|
313 |
|
314 |
/**
|
315 |
* @return array[]
|
316 |
-
* @psalm-return list<array{root: array{name: string,
|
317 |
*/
|
318 |
private static function getInstalled()
|
319 |
{
|
28 |
{
|
29 |
/**
|
30 |
* @var mixed[]|null
|
31 |
+
* @psalm-var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>}|array{}|null
|
32 |
*/
|
33 |
private static $installed;
|
34 |
|
39 |
|
40 |
/**
|
41 |
* @var array[]
|
42 |
+
* @psalm-var array<string, array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>}>
|
43 |
*/
|
44 |
private static $installedByVendor = array();
|
45 |
|
243 |
|
244 |
/**
|
245 |
* @return array
|
246 |
+
* @psalm-return array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}
|
247 |
*/
|
248 |
public static function getRootPackage()
|
249 |
{
|
257 |
*
|
258 |
* @deprecated Use getAllRawData() instead which returns all datasets for all autoloaders present in the process. getRawData only returns the first dataset loaded, which may not be what you expect.
|
259 |
* @return array[]
|
260 |
+
* @psalm-return array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>}
|
261 |
*/
|
262 |
public static function getRawData()
|
263 |
{
|
280 |
* Returns the raw data of all installed.php which are currently loaded for custom implementations
|
281 |
*
|
282 |
* @return array[]
|
283 |
+
* @psalm-return list<array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>}>
|
284 |
*/
|
285 |
public static function getAllRawData()
|
286 |
{
|
303 |
* @param array[] $data A vendor/composer/installed.php data set
|
304 |
* @return void
|
305 |
*
|
306 |
+
* @psalm-param array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>} $data
|
307 |
*/
|
308 |
public static function reload($data)
|
309 |
{
|
313 |
|
314 |
/**
|
315 |
* @return array[]
|
316 |
+
* @psalm-return list<array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>}>
|
317 |
*/
|
318 |
private static function getInstalled()
|
319 |
{
|
vendor/composer/autoload_real.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
|
3 |
// autoload_real.php @generated by Composer
|
4 |
|
5 |
-
class
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
@@ -24,12 +24,12 @@ class ComposerAutoloaderInitaf825c40dabb0d3b127c697a618cc035
|
|
24 |
|
25 |
require __DIR__ . '/platform_check.php';
|
26 |
|
27 |
-
spl_autoload_register(array('
|
28 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
|
29 |
-
spl_autoload_unregister(array('
|
30 |
|
31 |
require __DIR__ . '/autoload_static.php';
|
32 |
-
call_user_func(\Composer\Autoload\
|
33 |
|
34 |
$loader->register(true);
|
35 |
|
2 |
|
3 |
// autoload_real.php @generated by Composer
|
4 |
|
5 |
+
class ComposerAutoloaderInita4fb4137f1a6b354a5da34ef495a08bf
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
24 |
|
25 |
require __DIR__ . '/platform_check.php';
|
26 |
|
27 |
+
spl_autoload_register(array('ComposerAutoloaderInita4fb4137f1a6b354a5da34ef495a08bf', 'loadClassLoader'), true, true);
|
28 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
|
29 |
+
spl_autoload_unregister(array('ComposerAutoloaderInita4fb4137f1a6b354a5da34ef495a08bf', 'loadClassLoader'));
|
30 |
|
31 |
require __DIR__ . '/autoload_static.php';
|
32 |
+
call_user_func(\Composer\Autoload\ComposerStaticInita4fb4137f1a6b354a5da34ef495a08bf::getInitializer($loader));
|
33 |
|
34 |
$loader->register(true);
|
35 |
|
vendor/composer/autoload_static.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
|
5 |
namespace Composer\Autoload;
|
6 |
|
7 |
-
class
|
8 |
{
|
9 |
public static $prefixLengthsPsr4 = array (
|
10 |
'a' =>
|
@@ -45,10 +45,10 @@ class ComposerStaticInitaf825c40dabb0d3b127c697a618cc035
|
|
45 |
public static function getInitializer(ClassLoader $loader)
|
46 |
{
|
47 |
return \Closure::bind(function () use ($loader) {
|
48 |
-
$loader->prefixLengthsPsr4 =
|
49 |
-
$loader->prefixDirsPsr4 =
|
50 |
-
$loader->prefixesPsr0 =
|
51 |
-
$loader->classMap =
|
52 |
|
53 |
}, null, ClassLoader::class);
|
54 |
}
|
4 |
|
5 |
namespace Composer\Autoload;
|
6 |
|
7 |
+
class ComposerStaticInita4fb4137f1a6b354a5da34ef495a08bf
|
8 |
{
|
9 |
public static $prefixLengthsPsr4 = array (
|
10 |
'a' =>
|
45 |
public static function getInitializer(ClassLoader $loader)
|
46 |
{
|
47 |
return \Closure::bind(function () use ($loader) {
|
48 |
+
$loader->prefixLengthsPsr4 = ComposerStaticInita4fb4137f1a6b354a5da34ef495a08bf::$prefixLengthsPsr4;
|
49 |
+
$loader->prefixDirsPsr4 = ComposerStaticInita4fb4137f1a6b354a5da34ef495a08bf::$prefixDirsPsr4;
|
50 |
+
$loader->prefixesPsr0 = ComposerStaticInita4fb4137f1a6b354a5da34ef495a08bf::$prefixesPsr0;
|
51 |
+
$loader->classMap = ComposerStaticInita4fb4137f1a6b354a5da34ef495a08bf::$classMap;
|
52 |
|
53 |
}, null, ClassLoader::class);
|
54 |
}
|
vendor/composer/installed.php
CHANGED
@@ -1,58 +1,58 @@
|
|
1 |
<?php return array(
|
2 |
'root' => array(
|
3 |
-
'
|
4 |
-
'
|
|
|
|
|
5 |
'type' => 'library',
|
6 |
'install_path' => __DIR__ . '/../../',
|
7 |
'aliases' => array(),
|
8 |
-
'reference' => '116c02bc5d7978bcf045aed83bf048b140dca263',
|
9 |
-
'name' => 'woocommerce/woocommerce-square',
|
10 |
'dev' => false,
|
11 |
),
|
12 |
'versions' => array(
|
13 |
'apimatic/jsonmapper' => array(
|
14 |
'pretty_version' => 'v3.0.4',
|
15 |
'version' => '3.0.4.0',
|
|
|
16 |
'type' => 'library',
|
17 |
'install_path' => __DIR__ . '/../apimatic/jsonmapper',
|
18 |
'aliases' => array(),
|
19 |
-
'reference' => '99fc5372d69e773a623bec78b91061857d0b6832',
|
20 |
'dev_requirement' => false,
|
21 |
),
|
22 |
'apimatic/unirest-php' => array(
|
23 |
'pretty_version' => '2.3.0',
|
24 |
'version' => '2.3.0.0',
|
|
|
25 |
'type' => 'library',
|
26 |
'install_path' => __DIR__ . '/../apimatic/unirest-php',
|
27 |
'aliases' => array(),
|
28 |
-
'reference' => '52e226fb3b7081dc9ef64aee876142a240a5f0f9',
|
29 |
'dev_requirement' => false,
|
30 |
),
|
31 |
'square/square' => array(
|
32 |
'pretty_version' => '19.0.1.20220512',
|
33 |
'version' => '19.0.1.20220512',
|
|
|
34 |
'type' => 'library',
|
35 |
'install_path' => __DIR__ . '/../square/square',
|
36 |
'aliases' => array(),
|
37 |
-
'reference' => '7852d8a09f818b1bdd929a6366afaa1dbc6bf5e9',
|
38 |
'dev_requirement' => false,
|
39 |
),
|
40 |
'woocommerce/action-scheduler' => array(
|
41 |
'pretty_version' => '3.4.0',
|
42 |
'version' => '3.4.0.0',
|
|
|
43 |
'type' => 'wordpress-plugin',
|
44 |
'install_path' => __DIR__ . '/../woocommerce/action-scheduler',
|
45 |
'aliases' => array(),
|
46 |
-
'reference' => '3218a33ff14b968f8cb05de9656c2efa1eeb1330',
|
47 |
'dev_requirement' => false,
|
48 |
),
|
49 |
'woocommerce/woocommerce-square' => array(
|
50 |
-
'pretty_version' => 'dev-
|
51 |
-
'version' => 'dev-
|
|
|
52 |
'type' => 'library',
|
53 |
'install_path' => __DIR__ . '/../../',
|
54 |
'aliases' => array(),
|
55 |
-
'reference' => '116c02bc5d7978bcf045aed83bf048b140dca263',
|
56 |
'dev_requirement' => false,
|
57 |
),
|
58 |
),
|
1 |
<?php return array(
|
2 |
'root' => array(
|
3 |
+
'name' => 'woocommerce/woocommerce-square',
|
4 |
+
'pretty_version' => 'dev-release/3.4.1',
|
5 |
+
'version' => 'dev-release/3.4.1',
|
6 |
+
'reference' => '5cf0f41436d1e533f66ae3fc6c364a044cd370c1',
|
7 |
'type' => 'library',
|
8 |
'install_path' => __DIR__ . '/../../',
|
9 |
'aliases' => array(),
|
|
|
|
|
10 |
'dev' => false,
|
11 |
),
|
12 |
'versions' => array(
|
13 |
'apimatic/jsonmapper' => array(
|
14 |
'pretty_version' => 'v3.0.4',
|
15 |
'version' => '3.0.4.0',
|
16 |
+
'reference' => '99fc5372d69e773a623bec78b91061857d0b6832',
|
17 |
'type' => 'library',
|
18 |
'install_path' => __DIR__ . '/../apimatic/jsonmapper',
|
19 |
'aliases' => array(),
|
|
|
20 |
'dev_requirement' => false,
|
21 |
),
|
22 |
'apimatic/unirest-php' => array(
|
23 |
'pretty_version' => '2.3.0',
|
24 |
'version' => '2.3.0.0',
|
25 |
+
'reference' => '52e226fb3b7081dc9ef64aee876142a240a5f0f9',
|
26 |
'type' => 'library',
|
27 |
'install_path' => __DIR__ . '/../apimatic/unirest-php',
|
28 |
'aliases' => array(),
|
|
|
29 |
'dev_requirement' => false,
|
30 |
),
|
31 |
'square/square' => array(
|
32 |
'pretty_version' => '19.0.1.20220512',
|
33 |
'version' => '19.0.1.20220512',
|
34 |
+
'reference' => '7852d8a09f818b1bdd929a6366afaa1dbc6bf5e9',
|
35 |
'type' => 'library',
|
36 |
'install_path' => __DIR__ . '/../square/square',
|
37 |
'aliases' => array(),
|
|
|
38 |
'dev_requirement' => false,
|
39 |
),
|
40 |
'woocommerce/action-scheduler' => array(
|
41 |
'pretty_version' => '3.4.0',
|
42 |
'version' => '3.4.0.0',
|
43 |
+
'reference' => '3218a33ff14b968f8cb05de9656c2efa1eeb1330',
|
44 |
'type' => 'wordpress-plugin',
|
45 |
'install_path' => __DIR__ . '/../woocommerce/action-scheduler',
|
46 |
'aliases' => array(),
|
|
|
47 |
'dev_requirement' => false,
|
48 |
),
|
49 |
'woocommerce/woocommerce-square' => array(
|
50 |
+
'pretty_version' => 'dev-release/3.4.1',
|
51 |
+
'version' => 'dev-release/3.4.1',
|
52 |
+
'reference' => '5cf0f41436d1e533f66ae3fc6c364a044cd370c1',
|
53 |
'type' => 'library',
|
54 |
'install_path' => __DIR__ . '/../../',
|
55 |
'aliases' => array(),
|
|
|
56 |
'dev_requirement' => false,
|
57 |
),
|
58 |
),
|
woocommerce-square.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* Plugin Name: WooCommerce Square
|
4 |
-
* Version: 3.4.
|
5 |
* Plugin URI: https://woocommerce.com/products/square/
|
6 |
* Requires at least: 5.6
|
7 |
* Requires PHP: 7.2
|
@@ -31,7 +31,7 @@ defined( 'ABSPATH' ) || exit;
|
|
31 |
require_once plugin_dir_path( __FILE__ ) . 'vendor/woocommerce/action-scheduler/action-scheduler.php';
|
32 |
|
33 |
if ( ! defined( 'WC_SQUARE_PLUGIN_VERSION' ) ) {
|
34 |
-
define( 'WC_SQUARE_PLUGIN_VERSION', '3.4.
|
35 |
}
|
36 |
|
37 |
if ( ! defined( 'WC_SQUARE_PLUGIN_URL' ) ) {
|
@@ -404,14 +404,10 @@ class WooCommerce_Square_Loader {
|
|
404 |
* @return boolean
|
405 |
*/
|
406 |
protected function is_opcache_save_message_enabled() {
|
407 |
-
$
|
408 |
-
$
|
409 |
-
$opcache_save_comments = strtolower( ini_get( 'opcache.save_comments' ) );
|
410 |
|
411 |
-
|
412 |
-
$zend_opcache = extension_loaded( 'Zend OPcache' ) && in_array( $opcache_save_comments, $enabled_values, true );
|
413 |
-
|
414 |
-
return ( $zend_optimizer_plus || $zend_opcache );
|
415 |
}
|
416 |
|
417 |
/**
|
1 |
<?php
|
2 |
/**
|
3 |
* Plugin Name: WooCommerce Square
|
4 |
+
* Version: 3.4.1
|
5 |
* Plugin URI: https://woocommerce.com/products/square/
|
6 |
* Requires at least: 5.6
|
7 |
* Requires PHP: 7.2
|
31 |
require_once plugin_dir_path( __FILE__ ) . 'vendor/woocommerce/action-scheduler/action-scheduler.php';
|
32 |
|
33 |
if ( ! defined( 'WC_SQUARE_PLUGIN_VERSION' ) ) {
|
34 |
+
define( 'WC_SQUARE_PLUGIN_VERSION', '3.4.1' ); // WRCS: DEFINED_VERSION.
|
35 |
}
|
36 |
|
37 |
if ( ! defined( 'WC_SQUARE_PLUGIN_URL' ) ) {
|
404 |
* @return boolean
|
405 |
*/
|
406 |
protected function is_opcache_save_message_enabled() {
|
407 |
+
$zend_optimizer_plus = extension_loaded( 'Zend Optimizer+' ) && '0' === ( ini_get( 'zend_optimizerplus.save_comments' ) || '0' === ini_get( 'opcache.save_comments' ) );
|
408 |
+
$zend_opcache = extension_loaded( 'Zend OPcache' ) && '0' === ini_get( 'opcache.save_comments' );
|
|
|
409 |
|
410 |
+
return ! ( $zend_optimizer_plus || $zend_opcache );
|
|
|
|
|
|
|
411 |
}
|
412 |
|
413 |
/**
|