Version Description
- 2020-03-23 =
- Fixed HTML in field label
- Fixed file upload error
Download this release
Release Info
Developer | wpdesk |
Plugin | Flexible Checkout Fields for WooCommerce – WooCommerce Checkout Manager |
Version | 2.4.5 |
Comparing to | |
See all releases |
Code changes from version 2.4.4 to 2.4.5
- assets/js/checkout.js +1 -6
- assets/js/checkout.min.js +1 -2
- classes/class-flexible-checkout-fields-plugin.php +1 -1
- classes/settings.php +1 -1
- flexible-checkout-fields.php +2 -2
- lang/flexible-checkout-fields.pot +2 -2
- readme.txt +5 -1
- vendor/autoload.php +1 -1
- vendor/composer/autoload_real.php +4 -4
- vendor/composer/autoload_static.php +4 -4
assets/js/checkout.js
CHANGED
@@ -47,8 +47,8 @@ jQuery(document).on("change",".inspire-file-file",function() {
|
|
47 |
$file_info.empty();
|
48 |
$file_info.hide();
|
49 |
$file_error.empty();
|
50 |
-
$file_error.show();
|
51 |
$file_error.append( response.message + '<br/>' );
|
|
|
52 |
jQuery('#' + id).find('.inspire-file-file').val('');
|
53 |
jQuery('#' + id).find('.inspire-file').val('');
|
54 |
}
|
@@ -60,11 +60,6 @@ jQuery(document).on("change",".inspire-file-file",function() {
|
|
60 |
$file_info.show();
|
61 |
$file_info.append(filename + '<br/>');
|
62 |
}
|
63 |
-
if ( jQuery('#' + id).find('.inspire-file').val() == '' ) {
|
64 |
-
$file_info.empty();
|
65 |
-
$file_error.empty();
|
66 |
-
$file_error.hide();
|
67 |
-
}
|
68 |
}
|
69 |
}
|
70 |
});
|
47 |
$file_info.empty();
|
48 |
$file_info.hide();
|
49 |
$file_error.empty();
|
|
|
50 |
$file_error.append( response.message + '<br/>' );
|
51 |
+
$file_error.show();
|
52 |
jQuery('#' + id).find('.inspire-file-file').val('');
|
53 |
jQuery('#' + id).find('.inspire-file').val('');
|
54 |
}
|
60 |
$file_info.show();
|
61 |
$file_info.append(filename + '<br/>');
|
62 |
}
|
|
|
|
|
|
|
|
|
|
|
63 |
}
|
64 |
}
|
65 |
});
|
assets/js/checkout.min.js
CHANGED
@@ -1,2 +1 @@
|
|
1 |
-
jQuery(document).on("click",".inspire-file-add-button",function(){jQuery(this).parent().find('input[type=file]').click()});jQuery(document).on("click",".inspire-file-delete-button",function(){jQuery(this).parent().find('input[type=file]').val('');jQuery(this).parent().find('input[type=text]').val('');jQuery(this).parent().find('.inspire-file-info').empty();jQuery(this).parent().find('.inspire-file-info').hide();jQuery(this).parent().find('.inspire-file-delete-button').hide();jQuery(this).parent().find('.inspire-file-add-button').show()});jQuery(document).on("change",".inspire-file-file",function(){var id=jQuery(this).parent().attr('id');var $file_info=jQuery('#'+id).find('.inspire-file-info');var $file_error=jQuery('#'+id).find('.inspire-file-error');var $file_add_button=jQuery('#'+id).find('.inspire-file-add-button');$file_info.empty();$file_error.empty();$file_error.hide();$file_info.show();$file_info.append(words.uploading);jQuery(this).parent().find('input[type=text]').val(jQuery(this).val());$file_add_button.hide();var fd=new FormData();var file=jQuery(this).prop('files')[0];var filename=file.name;fd.append(jQuery(this).attr('field_name'),file);fd.append('action','cf_upload');fd.append('inspire_upload_nonce',inspire_upload_nonce);jQuery('#place_order').prop('disabled',!0);jQuery.ajax({type:'POST',url:ajaxurl,data:fd,contentType:!1,processData:!1,success:function(response){jQuery('#place_order').prop('disabled',!1);if(response!=0){response=JSON.parse(response);if(response.status!='ok'){$file_add_button.show();$file_info.empty();$file_info.hide();$file_error.empty();$file_error.
|
2 |
-
if(jQuery('#'+id).find('.inspire-file').val()==''){$file_info.empty();$file_error.empty();$file_error.hide()}}}})})
|
1 |
+
jQuery(document).on("click",".inspire-file-add-button",function(){jQuery(this).parent().find('input[type=file]').click()});jQuery(document).on("click",".inspire-file-delete-button",function(){jQuery(this).parent().find('input[type=file]').val('');jQuery(this).parent().find('input[type=text]').val('');jQuery(this).parent().find('.inspire-file-info').empty();jQuery(this).parent().find('.inspire-file-info').hide();jQuery(this).parent().find('.inspire-file-delete-button').hide();jQuery(this).parent().find('.inspire-file-add-button').show()});jQuery(document).on("change",".inspire-file-file",function(){var id=jQuery(this).parent().attr('id');var $file_info=jQuery('#'+id).find('.inspire-file-info');var $file_error=jQuery('#'+id).find('.inspire-file-error');var $file_add_button=jQuery('#'+id).find('.inspire-file-add-button');$file_info.empty();$file_error.empty();$file_error.hide();$file_info.show();$file_info.append(words.uploading);jQuery(this).parent().find('input[type=text]').val(jQuery(this).val());$file_add_button.hide();var fd=new FormData();var file=jQuery(this).prop('files')[0];var filename=file.name;fd.append(jQuery(this).attr('field_name'),file);fd.append('action','cf_upload');fd.append('inspire_upload_nonce',inspire_upload_nonce);jQuery('#place_order').prop('disabled',!0);jQuery.ajax({type:'POST',url:ajaxurl,data:fd,contentType:!1,processData:!1,success:function(response){jQuery('#place_order').prop('disabled',!1);if(response!=0){response=JSON.parse(response);if(response.status!='ok'){$file_add_button.show();$file_info.empty();$file_info.hide();$file_error.empty();$file_error.append(response.message+'<br/>');$file_error.show();jQuery('#'+id).find('.inspire-file-file').val('');jQuery('#'+id).find('.inspire-file').val('')}else{jQuery('#'+id).find('.inspire-file-delete-button').show();$file_error.empty();$file_error.hide();$file_info.empty();$file_info.show();$file_info.append(filename+'<br/>')}}}})})
|
|
classes/class-flexible-checkout-fields-plugin.php
CHANGED
@@ -22,7 +22,7 @@ class Flexible_Checkout_Fields_Plugin extends \FcfVendor\WPDesk\PluginBuilder\Pl
|
|
22 |
*
|
23 |
* @var string
|
24 |
*/
|
25 |
-
private $scripts_version = FLEXIBLE_CHECKOUT_FIELDS_VERSION . '.
|
26 |
|
27 |
protected $fields = array();
|
28 |
|
22 |
*
|
23 |
* @var string
|
24 |
*/
|
25 |
+
private $scripts_version = FLEXIBLE_CHECKOUT_FIELDS_VERSION . '.16';
|
26 |
|
27 |
protected $fields = array();
|
28 |
|
classes/settings.php
CHANGED
@@ -323,7 +323,7 @@
|
|
323 |
if ( empty( $field['label'] ) ) {
|
324 |
$field['label'] = '';
|
325 |
} else {
|
326 |
-
$field['label'] =
|
327 |
}
|
328 |
if ( empty( $field['placeholder'] ) ) {
|
329 |
$field['placeholder'] = '';
|
323 |
if ( empty( $field['label'] ) ) {
|
324 |
$field['label'] = '';
|
325 |
} else {
|
326 |
+
$field['label'] = wp_kses( wp_unslash( $field['label'] ), wp_kses_allowed_html( 'post' ) );
|
327 |
}
|
328 |
if ( empty( $field['placeholder'] ) ) {
|
329 |
$field['placeholder'] = '';
|
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.4.
|
7 |
Author: WP Desk
|
8 |
Author URI: https://www.wpdesk.net/
|
9 |
Text Domain: flexible-checkout-fields
|
@@ -37,7 +37,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
37 |
|
38 |
|
39 |
/* THESE TWO VARIABLES CAN BE CHANGED AUTOMATICALLY */
|
40 |
-
$plugin_version = '2.4.
|
41 |
$plugin_release_timestamp = '2020-03-20 17:31';
|
42 |
|
43 |
define( 'FLEXIBLE_CHECKOUT_FIELDS_VERSION', $plugin_version );
|
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.4.5
|
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.4.5';
|
41 |
$plugin_release_timestamp = '2020-03-20 17:31';
|
42 |
|
43 |
define( 'FLEXIBLE_CHECKOUT_FIELDS_VERSION', $plugin_version );
|
lang/flexible-checkout-fields.pot
CHANGED
@@ -7,8 +7,8 @@ msgstr ""
|
|
7 |
"MIME-Version: 1.0\n"
|
8 |
"Content-Type: text/plain; charset=UTF-8\n"
|
9 |
"Content-Transfer-Encoding: 8bit\n"
|
10 |
-
"POT-Creation-Date: 2020-03-
|
11 |
-
"PO-Revision-Date: 2020-03-
|
12 |
"Language: \n"
|
13 |
"X-Poedit-Basepath: ..\n"
|
14 |
"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
|
7 |
"MIME-Version: 1.0\n"
|
8 |
"Content-Type: text/plain; charset=UTF-8\n"
|
9 |
"Content-Transfer-Encoding: 8bit\n"
|
10 |
+
"POT-Creation-Date: 2020-03-25T07:34:59+00:00\n"
|
11 |
+
"PO-Revision-Date: 2020-03-25T07:34:59+00:00\n"
|
12 |
"Language: \n"
|
13 |
"X-Poedit-Basepath: ..\n"
|
14 |
"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Donate link: https://www.wpdesk.net/flexible-checkout-fields-woocommerce/
|
|
5 |
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
|
6 |
Requires at least: 4.5
|
7 |
Tested up to: 5.3.2
|
8 |
-
Stable tag: 2.4.
|
9 |
Requires PHP: 5.6
|
10 |
License: GPLv3 or later
|
11 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
@@ -193,6 +193,10 @@ If you are upgrading from the old WooCommerce Checkout Fields version (1.1, wooc
|
|
193 |
|
194 |
== Changelog ==
|
195 |
|
|
|
|
|
|
|
|
|
196 |
= 2.4.4 - 2020-03-20 =
|
197 |
* Fixed fatal error in user profile
|
198 |
|
5 |
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
|
6 |
Requires at least: 4.5
|
7 |
Tested up to: 5.3.2
|
8 |
+
Stable tag: 2.4.5
|
9 |
Requires PHP: 5.6
|
10 |
License: GPLv3 or later
|
11 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
193 |
|
194 |
== Changelog ==
|
195 |
|
196 |
+
= 2.4.5 - 2020-03-23 =
|
197 |
+
* Fixed HTML in field label
|
198 |
+
* Fixed file upload error
|
199 |
+
|
200 |
= 2.4.4 - 2020-03-20 =
|
201 |
* Fixed fatal error in user profile
|
202 |
|
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 ComposerAutoloaderInit2aef8d6d39ce5ce1fb182916665877f3::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 ComposerAutoloaderInit4adab2c7266dc2eba826917e7cce5eff
|
|
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 ComposerAutoloaderInit2aef8d6d39ce5ce1fb182916665877f3
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
19 |
return self::$loader;
|
20 |
}
|
21 |
|
22 |
+
spl_autoload_register(array('ComposerAutoloaderInit2aef8d6d39ce5ce1fb182916665877f3', 'loadClassLoader'), true, true);
|
23 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
|
24 |
+
spl_autoload_unregister(array('ComposerAutoloaderInit2aef8d6d39ce5ce1fb182916665877f3', '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\ComposerStaticInit2aef8d6d39ce5ce1fb182916665877f3::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 $prefixLengthsPsr4 = array (
|
10 |
'P' =>
|
@@ -276,9 +276,9 @@ class ComposerStaticInit4adab2c7266dc2eba826917e7cce5eff
|
|
276 |
public static function getInitializer(ClassLoader $loader)
|
277 |
{
|
278 |
return \Closure::bind(function () use ($loader) {
|
279 |
-
$loader->prefixLengthsPsr4 =
|
280 |
-
$loader->prefixDirsPsr4 =
|
281 |
-
$loader->classMap =
|
282 |
|
283 |
}, null, ClassLoader::class);
|
284 |
}
|
4 |
|
5 |
namespace Composer\Autoload;
|
6 |
|
7 |
+
class ComposerStaticInit2aef8d6d39ce5ce1fb182916665877f3
|
8 |
{
|
9 |
public static $prefixLengthsPsr4 = array (
|
10 |
'P' =>
|
276 |
public static function getInitializer(ClassLoader $loader)
|
277 |
{
|
278 |
return \Closure::bind(function () use ($loader) {
|
279 |
+
$loader->prefixLengthsPsr4 = ComposerStaticInit2aef8d6d39ce5ce1fb182916665877f3::$prefixLengthsPsr4;
|
280 |
+
$loader->prefixDirsPsr4 = ComposerStaticInit2aef8d6d39ce5ce1fb182916665877f3::$prefixDirsPsr4;
|
281 |
+
$loader->classMap = ComposerStaticInit2aef8d6d39ce5ce1fb182916665877f3::$classMap;
|
282 |
|
283 |
}, null, ClassLoader::class);
|
284 |
}
|