Version Description
- 2019-05-06 =
- Fixed field name verification - used toLowerCase method.
Download this release
Release Info
Developer | jablonowski |
Plugin | Flexible Checkout Fields for WooCommerce – WooCommerce Checkout Manager |
Version | 1.9.3 |
Comparing to | |
See all releases |
Code changes from version 1.9.2 to 1.9.3
- classes/views/settings-fields.php +1 -1
- composer.lock +7 -7
- flexible-checkout-fields.php +5 -5
- gitlab-ci-free.yml +0 -5
- readme.txt +5 -2
- vendor/autoload.php +1 -1
- vendor/composer/LICENSE +0 -21
- vendor/composer/autoload_real.php +4 -4
- vendor/composer/autoload_static.php +2 -2
classes/views/settings-fields.php
CHANGED
@@ -543,7 +543,7 @@ foreach ( $plugin->sections as $section ) {
|
|
543 |
var field_name = jQuery(this).attr('name');
|
544 |
var field_settings = jQuery(this).closest('.field-item');
|
545 |
if ( field_name != jQuery(field).attr('name') ) {
|
546 |
-
if ( jQuery(field).val() == jQuery(this).val() ) {
|
547 |
var message = '<?php echo sprintf(__( 'Invalid field name: %s. The name already exists.', 'flexible-checkout-fields' ), '[field]' ); ?>';
|
548 |
message = message.replace( '[field]', jQuery(field).val() );
|
549 |
alert( message );
|
543 |
var field_name = jQuery(this).attr('name');
|
544 |
var field_settings = jQuery(this).closest('.field-item');
|
545 |
if ( field_name != jQuery(field).attr('name') ) {
|
546 |
+
if ( jQuery(field).val().toLowerCase() == jQuery(this).val().toLowerCase() ) {
|
547 |
var message = '<?php echo sprintf(__( 'Invalid field name: %s. The name already exists.', 'flexible-checkout-fields' ), '[field]' ); ?>';
|
548 |
message = message.replace( '[field]', jQuery(field).val() );
|
549 |
alert( message );
|
composer.lock
CHANGED
@@ -1414,16 +1414,16 @@
|
|
1414 |
},
|
1415 |
{
|
1416 |
"name": "squizlabs/php_codesniffer",
|
1417 |
-
"version": "3.4.
|
1418 |
"source": {
|
1419 |
"type": "git",
|
1420 |
"url": "https://github.com/squizlabs/PHP_CodeSniffer.git",
|
1421 |
-
"reference": "
|
1422 |
},
|
1423 |
"dist": {
|
1424 |
"type": "zip",
|
1425 |
-
"url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/
|
1426 |
-
"reference": "
|
1427 |
"shasum": ""
|
1428 |
},
|
1429 |
"require": {
|
@@ -1461,7 +1461,7 @@
|
|
1461 |
"phpcs",
|
1462 |
"standards"
|
1463 |
],
|
1464 |
-
"time": "2019-
|
1465 |
},
|
1466 |
{
|
1467 |
"name": "symfony/polyfill-ctype",
|
@@ -1508,7 +1508,7 @@
|
|
1508 |
},
|
1509 |
{
|
1510 |
"name": "Gert de Pagter",
|
1511 |
-
"email": "
|
1512 |
}
|
1513 |
],
|
1514 |
"description": "Symfony polyfill for ctype functions",
|
@@ -1523,7 +1523,7 @@
|
|
1523 |
},
|
1524 |
{
|
1525 |
"name": "symfony/yaml",
|
1526 |
-
"version": "v3.4.
|
1527 |
"source": {
|
1528 |
"type": "git",
|
1529 |
"url": "https://github.com/symfony/yaml.git",
|
1414 |
},
|
1415 |
{
|
1416 |
"name": "squizlabs/php_codesniffer",
|
1417 |
+
"version": "3.4.2",
|
1418 |
"source": {
|
1419 |
"type": "git",
|
1420 |
"url": "https://github.com/squizlabs/PHP_CodeSniffer.git",
|
1421 |
+
"reference": "b8a7362af1cc1aadb5bd36c3defc4dda2cf5f0a8"
|
1422 |
},
|
1423 |
"dist": {
|
1424 |
"type": "zip",
|
1425 |
+
"url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/b8a7362af1cc1aadb5bd36c3defc4dda2cf5f0a8",
|
1426 |
+
"reference": "b8a7362af1cc1aadb5bd36c3defc4dda2cf5f0a8",
|
1427 |
"shasum": ""
|
1428 |
},
|
1429 |
"require": {
|
1461 |
"phpcs",
|
1462 |
"standards"
|
1463 |
],
|
1464 |
+
"time": "2019-04-10T23:49:02+00:00"
|
1465 |
},
|
1466 |
{
|
1467 |
"name": "symfony/polyfill-ctype",
|
1508 |
},
|
1509 |
{
|
1510 |
"name": "Gert de Pagter",
|
1511 |
+
"email": "BackEndTea@gmail.com"
|
1512 |
}
|
1513 |
],
|
1514 |
"description": "Symfony polyfill for ctype functions",
|
1523 |
},
|
1524 |
{
|
1525 |
"name": "symfony/yaml",
|
1526 |
+
"version": "v3.4.27",
|
1527 |
"source": {
|
1528 |
"type": "git",
|
1529 |
"url": "https://github.com/symfony/yaml.git",
|
flexible-checkout-fields.php
CHANGED
@@ -3,15 +3,15 @@
|
|
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: 1.9.
|
7 |
Author: WP Desk
|
8 |
Author URI: https://www.wpdesk.net/
|
9 |
Text Domain: flexible-checkout-fields
|
10 |
Domain Path: /lang/
|
11 |
Requires at least: 4.6
|
12 |
-
Tested up to: 5.
|
13 |
WC requires at least: 3.1.0
|
14 |
-
WC tested up to: 3.6
|
15 |
Requires PHP: 5.6
|
16 |
|
17 |
Copyright 2017 WP Desk Ltd.
|
@@ -34,7 +34,7 @@
|
|
34 |
|
35 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
36 |
|
37 |
-
$plugin_version = '1.9.
|
38 |
define( 'FLEXIBLE_CHECKOUT_FIELDS_VERSION', $plugin_version );
|
39 |
|
40 |
|
@@ -69,7 +69,7 @@
|
|
69 |
|
70 |
class Flexible_Checkout_Fields_Plugin extends WPDesk_Plugin_1_8 {
|
71 |
|
72 |
-
protected $script_version = '
|
73 |
|
74 |
protected $fields = array();
|
75 |
|
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: 1.9.3
|
7 |
Author: WP Desk
|
8 |
Author URI: https://www.wpdesk.net/
|
9 |
Text Domain: flexible-checkout-fields
|
10 |
Domain Path: /lang/
|
11 |
Requires at least: 4.6
|
12 |
+
Tested up to: 5.2
|
13 |
WC requires at least: 3.1.0
|
14 |
+
WC tested up to: 3.6.2
|
15 |
Requires PHP: 5.6
|
16 |
|
17 |
Copyright 2017 WP Desk Ltd.
|
34 |
|
35 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
36 |
|
37 |
+
$plugin_version = '1.9.3';
|
38 |
define( 'FLEXIBLE_CHECKOUT_FIELDS_VERSION', $plugin_version );
|
39 |
|
40 |
|
69 |
|
70 |
class Flexible_Checkout_Fields_Plugin extends WPDesk_Plugin_1_8 {
|
71 |
|
72 |
+
protected $script_version = '28';
|
73 |
|
74 |
protected $fields = array();
|
75 |
|
gitlab-ci-free.yml
DELETED
@@ -1,5 +0,0 @@
|
|
1 |
-
include: 'https://gitlab.com/wpdesk/gitlab-ci/raw/master/gitlab-ci-1.2.yml'
|
2 |
-
|
3 |
-
|
4 |
-
deploy to repository:
|
5 |
-
when: on_success
|
|
|
|
|
|
|
|
|
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: wpdesk
|
|
3 |
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.
|
7 |
-
Stable tag: 1.9.
|
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 |
= 1.9.2 - 2019-04-04 =
|
192 |
* Fixed fatal error in restore_default_city_validation
|
193 |
|
3 |
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
|
7 |
+
Stable tag: 1.9.3
|
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 |
+
= 1.9.3 - 2019-05-06 =
|
192 |
+
* Fixed field name verification - used toLowerCase method.
|
193 |
+
|
194 |
= 1.9.2 - 2019-04-04 =
|
195 |
* Fixed fatal error in restore_default_city_validation
|
196 |
|
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 ComposerAutoloaderInit38c7e66db9f7d16b2beaa8673bd69542::getLoader();
|
vendor/composer/LICENSE
DELETED
@@ -1,21 +0,0 @@
|
|
1 |
-
|
2 |
-
Copyright (c) Nils Adermann, Jordi Boggiano
|
3 |
-
|
4 |
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
5 |
-
of this software and associated documentation files (the "Software"), to deal
|
6 |
-
in the Software without restriction, including without limitation the rights
|
7 |
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
8 |
-
copies of the Software, and to permit persons to whom the Software is furnished
|
9 |
-
to do so, subject to the following conditions:
|
10 |
-
|
11 |
-
The above copyright notice and this permission notice shall be included in all
|
12 |
-
copies or substantial portions of the Software.
|
13 |
-
|
14 |
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
15 |
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
16 |
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
17 |
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
18 |
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
19 |
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
20 |
-
THE SOFTWARE.
|
21 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 ComposerAutoloaderInit57c10c25668f0c46d73582398dfd6774
|
|
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) {
|
2 |
|
3 |
// autoload_real.php @generated by Composer
|
4 |
|
5 |
+
class ComposerAutoloaderInit38c7e66db9f7d16b2beaa8673bd69542
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
19 |
return self::$loader;
|
20 |
}
|
21 |
|
22 |
+
spl_autoload_register(array('ComposerAutoloaderInit38c7e66db9f7d16b2beaa8673bd69542', 'loadClassLoader'), true, true);
|
23 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
24 |
+
spl_autoload_unregister(array('ComposerAutoloaderInit38c7e66db9f7d16b2beaa8673bd69542', '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\ComposerStaticInit38c7e66db9f7d16b2beaa8673bd69542::getInitializer($loader));
|
31 |
} else {
|
32 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
33 |
foreach ($map as $namespace => $path) {
|
vendor/composer/autoload_static.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
|
5 |
namespace Composer\Autoload;
|
6 |
|
7 |
-
class
|
8 |
{
|
9 |
public static $classMap = array (
|
10 |
'Browser' => __DIR__ . '/../..' . '/classes/wpdesk/settings-api/modules/sysinfo/browser.php',
|
@@ -55,7 +55,7 @@ class ComposerStaticInit57c10c25668f0c46d73582398dfd6774
|
|
55 |
public static function getInitializer(ClassLoader $loader)
|
56 |
{
|
57 |
return \Closure::bind(function () use ($loader) {
|
58 |
-
$loader->classMap =
|
59 |
|
60 |
}, null, ClassLoader::class);
|
61 |
}
|
4 |
|
5 |
namespace Composer\Autoload;
|
6 |
|
7 |
+
class ComposerStaticInit38c7e66db9f7d16b2beaa8673bd69542
|
8 |
{
|
9 |
public static $classMap = array (
|
10 |
'Browser' => __DIR__ . '/../..' . '/classes/wpdesk/settings-api/modules/sysinfo/browser.php',
|
55 |
public static function getInitializer(ClassLoader $loader)
|
56 |
{
|
57 |
return \Closure::bind(function () use ($loader) {
|
58 |
+
$loader->classMap = ComposerStaticInit38c7e66db9f7d16b2beaa8673bd69542::$classMap;
|
59 |
|
60 |
}, null, ClassLoader::class);
|
61 |
}
|