Version Description
- 2019-08-29 =
- Fixed warning "Illegal string offset" when shipment is disabled
Download this release
Release Info
Developer | jablonowski |
Plugin | Flexible Checkout Fields for WooCommerce – WooCommerce Checkout Manager |
Version | 2.1.1 |
Comparing to | |
See all releases |
Code changes from version 2.1.0 to 2.1.1
- classes/display-options.php +13 -0
- composer.lock +11 -12
- flexible-checkout-fields.php +3 -3
- readme.txt +4 -1
- vendor/autoload.php +1 -1
- vendor/composer/autoload_real.php +7 -7
- vendor/composer/autoload_static.php +4 -4
classes/display-options.php
CHANGED
@@ -367,9 +367,22 @@ class Flexible_Checkout_Fields_Disaplay_Options {
|
|
367 |
return $val;
|
368 |
}
|
369 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
370 |
public function woocommerce_order_formatted_shipping_address( $fields, $order ) {
|
371 |
$this->current_address_type = 'shipping';
|
372 |
WC()->countries->address_formats = '';
|
|
|
|
|
|
|
|
|
373 |
return $this->woocommerce_order_formatted_address( $fields, $order, 'shipping' );
|
374 |
}
|
375 |
|
367 |
return $val;
|
368 |
}
|
369 |
|
370 |
+
/**
|
371 |
+
* Mainly injects FCF data values into WC formatted shipping address.
|
372 |
+
* Also changes current_address_type indicator and do some shady stuff to WC()->countries.
|
373 |
+
*
|
374 |
+
* @param array|string $fields Fields can be string when shipment is disabled
|
375 |
+
* @param WC_Order $order
|
376 |
+
*
|
377 |
+
* @return array|string
|
378 |
+
*/
|
379 |
public function woocommerce_order_formatted_shipping_address( $fields, $order ) {
|
380 |
$this->current_address_type = 'shipping';
|
381 |
WC()->countries->address_formats = '';
|
382 |
+
if ( ! is_array( $fields ) ) {
|
383 |
+
return $fields;
|
384 |
+
}
|
385 |
+
|
386 |
return $this->woocommerce_order_formatted_address( $fields, $order, 'shipping' );
|
387 |
}
|
388 |
|
composer.lock
CHANGED
@@ -2024,16 +2024,16 @@
|
|
2024 |
},
|
2025 |
{
|
2026 |
"name": "symfony/yaml",
|
2027 |
-
"version": "v3.4.
|
2028 |
"source": {
|
2029 |
"type": "git",
|
2030 |
"url": "https://github.com/symfony/yaml.git",
|
2031 |
-
"reference": "
|
2032 |
},
|
2033 |
"dist": {
|
2034 |
"type": "zip",
|
2035 |
-
"url": "https://api.github.com/repos/symfony/yaml/zipball/
|
2036 |
-
"reference": "
|
2037 |
"shasum": ""
|
2038 |
},
|
2039 |
"require": {
|
@@ -2079,20 +2079,20 @@
|
|
2079 |
],
|
2080 |
"description": "Symfony Yaml Component",
|
2081 |
"homepage": "https://symfony.com",
|
2082 |
-
"time": "2019-
|
2083 |
},
|
2084 |
{
|
2085 |
"name": "webmozart/assert",
|
2086 |
-
"version": "1.
|
2087 |
"source": {
|
2088 |
"type": "git",
|
2089 |
"url": "https://github.com/webmozart/assert.git",
|
2090 |
-
"reference": "
|
2091 |
},
|
2092 |
"dist": {
|
2093 |
"type": "zip",
|
2094 |
-
"url": "https://api.github.com/repos/webmozart/assert/zipball/
|
2095 |
-
"reference": "
|
2096 |
"shasum": ""
|
2097 |
},
|
2098 |
"require": {
|
@@ -2100,8 +2100,7 @@
|
|
2100 |
"symfony/polyfill-ctype": "^1.8"
|
2101 |
},
|
2102 |
"require-dev": {
|
2103 |
-
"phpunit/phpunit": "^4.
|
2104 |
-
"sebastian/version": "^1.0.1"
|
2105 |
},
|
2106 |
"type": "library",
|
2107 |
"extra": {
|
@@ -2130,7 +2129,7 @@
|
|
2130 |
"check",
|
2131 |
"validate"
|
2132 |
],
|
2133 |
-
"time": "
|
2134 |
}
|
2135 |
],
|
2136 |
"aliases": [],
|
2024 |
},
|
2025 |
{
|
2026 |
"name": "symfony/yaml",
|
2027 |
+
"version": "v3.4.31",
|
2028 |
"source": {
|
2029 |
"type": "git",
|
2030 |
"url": "https://github.com/symfony/yaml.git",
|
2031 |
+
"reference": "3dc414b7db30695bae671a1d86013d03f4ae9834"
|
2032 |
},
|
2033 |
"dist": {
|
2034 |
"type": "zip",
|
2035 |
+
"url": "https://api.github.com/repos/symfony/yaml/zipball/3dc414b7db30695bae671a1d86013d03f4ae9834",
|
2036 |
+
"reference": "3dc414b7db30695bae671a1d86013d03f4ae9834",
|
2037 |
"shasum": ""
|
2038 |
},
|
2039 |
"require": {
|
2079 |
],
|
2080 |
"description": "Symfony Yaml Component",
|
2081 |
"homepage": "https://symfony.com",
|
2082 |
+
"time": "2019-08-20T13:31:17+00:00"
|
2083 |
},
|
2084 |
{
|
2085 |
"name": "webmozart/assert",
|
2086 |
+
"version": "1.5.0",
|
2087 |
"source": {
|
2088 |
"type": "git",
|
2089 |
"url": "https://github.com/webmozart/assert.git",
|
2090 |
+
"reference": "88e6d84706d09a236046d686bbea96f07b3a34f4"
|
2091 |
},
|
2092 |
"dist": {
|
2093 |
"type": "zip",
|
2094 |
+
"url": "https://api.github.com/repos/webmozart/assert/zipball/88e6d84706d09a236046d686bbea96f07b3a34f4",
|
2095 |
+
"reference": "88e6d84706d09a236046d686bbea96f07b3a34f4",
|
2096 |
"shasum": ""
|
2097 |
},
|
2098 |
"require": {
|
2100 |
"symfony/polyfill-ctype": "^1.8"
|
2101 |
},
|
2102 |
"require-dev": {
|
2103 |
+
"phpunit/phpunit": "^4.8.36 || ^7.5.13"
|
|
|
2104 |
},
|
2105 |
"type": "library",
|
2106 |
"extra": {
|
2129 |
"check",
|
2130 |
"validate"
|
2131 |
],
|
2132 |
+
"time": "2019-08-24T08:43:50+00:00"
|
2133 |
}
|
2134 |
],
|
2135 |
"aliases": [],
|
flexible-checkout-fields.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Flexible Checkout Fields
|
4 |
Plugin URI: https://www.wpdesk.net/products/flexible-checkout-fields-pro-woocommerce/
|
5 |
Description: Manage your WooCommerce checkout fields. Change order, labels, placeholders and add new fields.
|
6 |
-
Version: 2.1.
|
7 |
Author: WP Desk
|
8 |
Author URI: https://www.wpdesk.net/
|
9 |
Text Domain: flexible-checkout-fields
|
@@ -37,8 +37,8 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
37 |
|
38 |
|
39 |
/* THESE TWO VARIABLES CAN BE CHANGED AUTOMATICALLY */
|
40 |
-
$plugin_version = '2.1.
|
41 |
-
$plugin_release_timestamp = '2019-08-
|
42 |
|
43 |
define( 'FLEXIBLE_CHECKOUT_FIELDS_VERSION', $plugin_version );
|
44 |
|
3 |
Plugin Name: Flexible Checkout Fields
|
4 |
Plugin URI: https://www.wpdesk.net/products/flexible-checkout-fields-pro-woocommerce/
|
5 |
Description: Manage your WooCommerce checkout fields. Change order, labels, placeholders and add new fields.
|
6 |
+
Version: 2.1.1
|
7 |
Author: WP Desk
|
8 |
Author URI: https://www.wpdesk.net/
|
9 |
Text Domain: flexible-checkout-fields
|
37 |
|
38 |
|
39 |
/* THESE TWO VARIABLES CAN BE CHANGED AUTOMATICALLY */
|
40 |
+
$plugin_version = '2.1.1';
|
41 |
+
$plugin_release_timestamp = '2019-08-29 11:25';
|
42 |
|
43 |
define( 'FLEXIBLE_CHECKOUT_FIELDS_VERSION', $plugin_version );
|
44 |
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.wpdesk.net/flexible-checkout-fields-woocommerce/
|
|
4 |
Tags: woocommerce checkout fields, woocommerce custom fields, woocommerce checkout manager, woocommerce checkout editor, woocommerce fields manager, woocommerce fields editor, woocommerce custom checkout fields, woocommerce checkout options, woocommerce checkout pro, woocommerce custom sections, woocommerce file upload
|
5 |
Requires at least: 4.5
|
6 |
Tested up to: 5.2.0
|
7 |
-
Stable tag: 2.1.
|
8 |
Requires PHP: 5.6
|
9 |
License: GPLv3 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
@@ -188,6 +188,9 @@ If you are upgrading from the old WooCommerce Checkout Fields version (1.1, wooc
|
|
188 |
|
189 |
== Changelog ==
|
190 |
|
|
|
|
|
|
|
191 |
= 2.1.0 - 2019-08-21 =
|
192 |
* Fixed integration with Flexible Invoices invoice_ask field
|
193 |
* Added filter flexible_checkout_fields_invoices_integration_enabled
|
4 |
Tags: woocommerce checkout fields, woocommerce custom fields, woocommerce checkout manager, woocommerce checkout editor, woocommerce fields manager, woocommerce fields editor, woocommerce custom checkout fields, woocommerce checkout options, woocommerce checkout pro, woocommerce custom sections, woocommerce file upload
|
5 |
Requires at least: 4.5
|
6 |
Tested up to: 5.2.0
|
7 |
+
Stable tag: 2.1.1
|
8 |
Requires PHP: 5.6
|
9 |
License: GPLv3 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
188 |
|
189 |
== Changelog ==
|
190 |
|
191 |
+
= 2.1.1 - 2019-08-29 =
|
192 |
+
* Fixed warning "Illegal string offset" when shipment is disabled
|
193 |
+
|
194 |
= 2.1.0 - 2019-08-21 =
|
195 |
* Fixed integration with Flexible Invoices invoice_ask field
|
196 |
* Added filter flexible_checkout_fields_invoices_integration_enabled
|
vendor/autoload.php
CHANGED
@@ -4,4 +4,4 @@
|
|
4 |
|
5 |
require_once __DIR__ . '/composer/autoload_real.php';
|
6 |
|
7 |
-
return
|
4 |
|
5 |
require_once __DIR__ . '/composer/autoload_real.php';
|
6 |
|
7 |
+
return ComposerAutoloaderInit1ff6be52da32db7b16ec4e5b8e0d66e2::getLoader();
|
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 |
|
@@ -19,15 +19,15 @@ class ComposerAutoloaderInit3df23aa6c31cef71bde1c46b53c7af85
|
|
19 |
return self::$loader;
|
20 |
}
|
21 |
|
22 |
-
spl_autoload_register(array('
|
23 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
24 |
-
spl_autoload_unregister(array('
|
25 |
|
26 |
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
|
27 |
if ($useStaticLoader) {
|
28 |
require_once __DIR__ . '/autoload_static.php';
|
29 |
|
30 |
-
call_user_func(\Composer\Autoload\
|
31 |
} else {
|
32 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
33 |
foreach ($map as $namespace => $path) {
|
@@ -48,19 +48,19 @@ class ComposerAutoloaderInit3df23aa6c31cef71bde1c46b53c7af85
|
|
48 |
$loader->register(true);
|
49 |
|
50 |
if ($useStaticLoader) {
|
51 |
-
$includeFiles = Composer\Autoload\
|
52 |
} else {
|
53 |
$includeFiles = require __DIR__ . '/autoload_files.php';
|
54 |
}
|
55 |
foreach ($includeFiles as $fileIdentifier => $file) {
|
56 |
-
|
57 |
}
|
58 |
|
59 |
return $loader;
|
60 |
}
|
61 |
}
|
62 |
|
63 |
-
function
|
64 |
{
|
65 |
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
66 |
require $file;
|
2 |
|
3 |
// autoload_real.php @generated by Composer
|
4 |
|
5 |
+
class ComposerAutoloaderInit1ff6be52da32db7b16ec4e5b8e0d66e2
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
19 |
return self::$loader;
|
20 |
}
|
21 |
|
22 |
+
spl_autoload_register(array('ComposerAutoloaderInit1ff6be52da32db7b16ec4e5b8e0d66e2', 'loadClassLoader'), true, true);
|
23 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
24 |
+
spl_autoload_unregister(array('ComposerAutoloaderInit1ff6be52da32db7b16ec4e5b8e0d66e2', 'loadClassLoader'));
|
25 |
|
26 |
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
|
27 |
if ($useStaticLoader) {
|
28 |
require_once __DIR__ . '/autoload_static.php';
|
29 |
|
30 |
+
call_user_func(\Composer\Autoload\ComposerStaticInit1ff6be52da32db7b16ec4e5b8e0d66e2::getInitializer($loader));
|
31 |
} else {
|
32 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
33 |
foreach ($map as $namespace => $path) {
|
48 |
$loader->register(true);
|
49 |
|
50 |
if ($useStaticLoader) {
|
51 |
+
$includeFiles = Composer\Autoload\ComposerStaticInit1ff6be52da32db7b16ec4e5b8e0d66e2::$files;
|
52 |
} else {
|
53 |
$includeFiles = require __DIR__ . '/autoload_files.php';
|
54 |
}
|
55 |
foreach ($includeFiles as $fileIdentifier => $file) {
|
56 |
+
composerRequire1ff6be52da32db7b16ec4e5b8e0d66e2($fileIdentifier, $file);
|
57 |
}
|
58 |
|
59 |
return $loader;
|
60 |
}
|
61 |
}
|
62 |
|
63 |
+
function composerRequire1ff6be52da32db7b16ec4e5b8e0d66e2($fileIdentifier, $file)
|
64 |
{
|
65 |
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
66 |
require $file;
|
vendor/composer/autoload_static.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
|
5 |
namespace Composer\Autoload;
|
6 |
|
7 |
-
class
|
8 |
{
|
9 |
public static $files = array (
|
10 |
'0509b34a4bd7aebefeac629c9dc8a978' => __DIR__ . '/..' . '/wpdesk/wp-notice/src/WPDesk/notice-functions.php',
|
@@ -281,9 +281,9 @@ class ComposerStaticInit3df23aa6c31cef71bde1c46b53c7af85
|
|
281 |
public static function getInitializer(ClassLoader $loader)
|
282 |
{
|
283 |
return \Closure::bind(function () use ($loader) {
|
284 |
-
$loader->prefixLengthsPsr4 =
|
285 |
-
$loader->prefixDirsPsr4 =
|
286 |
-
$loader->classMap =
|
287 |
|
288 |
}, null, ClassLoader::class);
|
289 |
}
|
4 |
|
5 |
namespace Composer\Autoload;
|
6 |
|
7 |
+
class ComposerStaticInit1ff6be52da32db7b16ec4e5b8e0d66e2
|
8 |
{
|
9 |
public static $files = array (
|
10 |
'0509b34a4bd7aebefeac629c9dc8a978' => __DIR__ . '/..' . '/wpdesk/wp-notice/src/WPDesk/notice-functions.php',
|
281 |
public static function getInitializer(ClassLoader $loader)
|
282 |
{
|
283 |
return \Closure::bind(function () use ($loader) {
|
284 |
+
$loader->prefixLengthsPsr4 = ComposerStaticInit1ff6be52da32db7b16ec4e5b8e0d66e2::$prefixLengthsPsr4;
|
285 |
+
$loader->prefixDirsPsr4 = ComposerStaticInit1ff6be52da32db7b16ec4e5b8e0d66e2::$prefixDirsPsr4;
|
286 |
+
$loader->classMap = ComposerStaticInit1ff6be52da32db7b16ec4e5b8e0d66e2::$classMap;
|
287 |
|
288 |
}, null, ClassLoader::class);
|
289 |
}
|