Flexible Checkout Fields for WooCommerce – WooCommerce Checkout Manager - Version 1.9.0

Version Description

  • 2019-02-26 =
  • Fixed section settings fields saving
Download this release

Release Info

Developer jablonowski
Plugin Icon wp plugin Flexible Checkout Fields for WooCommerce – WooCommerce Checkout Manager
Version 1.9.0
Comparing to
See all releases

Code changes from version 1.8.3 to 1.9.0

classes/settings.php CHANGED
@@ -293,15 +293,19 @@
293
  }
294
  }
295
  }
296
- if ( empty( $field['label'] ) ) {
297
- $field['label'] = '';
298
- } else {
299
- $field['label'] = wp_unslash( $field['label'] );
300
- }
301
- if ( empty( $field['placeholder'] ) ) {
302
- $field['placeholder'] = '';
 
 
 
 
303
  } else {
304
- $field['placeholder'] = wp_unslash( $field['placeholder'] );
305
  }
306
  $section_settings[$field_name] = $field;
307
  }
293
  }
294
  }
295
  }
296
+ if ( is_array( $field ) ) {
297
+ if ( empty( $field['label'] ) ) {
298
+ $field['label'] = '';
299
+ } else {
300
+ $field['label'] = wp_unslash( $field['label'] );
301
+ }
302
+ if ( empty( $field['placeholder'] ) ) {
303
+ $field['placeholder'] = '';
304
+ } else {
305
+ $field['placeholder'] = wp_unslash( $field['placeholder'] );
306
+ }
307
  } else {
308
+ $field = wp_unslash( $field );
309
  }
310
  $section_settings[$field_name] = $field;
311
  }
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: 1.8.3
7
  Author: WP Desk
8
  Author URI: https://www.wpdesk.net/
9
  Text Domain: flexible-checkout-fields
@@ -33,7 +33,7 @@
33
 
34
  if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
35
 
36
- $plugin_version = '1.8.3';
37
  define( 'FLEXIBLE_CHECKOUT_FIELDS_VERSION', $plugin_version );
38
 
39
 
@@ -68,7 +68,7 @@
68
 
69
  class Flexible_Checkout_Fields_Plugin extends WPDesk_Plugin_1_8 {
70
 
71
- protected $script_version = '1.8.3';
72
 
73
  protected $fields = array();
74
 
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.0
7
  Author: WP Desk
8
  Author URI: https://www.wpdesk.net/
9
  Text Domain: flexible-checkout-fields
33
 
34
  if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
35
 
36
+ $plugin_version = '1.9.0';
37
  define( 'FLEXIBLE_CHECKOUT_FIELDS_VERSION', $plugin_version );
38
 
39
 
68
 
69
  class Flexible_Checkout_Fields_Plugin extends WPDesk_Plugin_1_8 {
70
 
71
+ protected $script_version = '1.9.0';
72
 
73
  protected $fields = array();
74
 
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.1.0
7
- Stable tag: 1.8.3
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.8.3 - 2019-02-25 =
192
  * Tweaked FCF PRO activation checking
193
  * Fixed error of sorting fields
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.1.0
7
+ Stable tag: 1.9.0
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.0 - 2019-02-26 =
192
+ * Fixed section settings fields saving
193
+
194
  = 1.8.3 - 2019-02-25 =
195
  * Tweaked FCF PRO activation checking
196
  * Fixed error of sorting fields
vendor/autoload.php CHANGED
@@ -4,4 +4,4 @@
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
- return ComposerAutoloaderInit123db0ef3651fb5cae06d63cfb1e1dfe::getLoader();
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
+ return ComposerAutoloaderInit1a67f9403ff49ace0e880caa31b6d5a3::getLoader();
vendor/composer/autoload_real.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
- class ComposerAutoloaderInit123db0ef3651fb5cae06d63cfb1e1dfe
6
  {
7
  private static $loader;
8
 
@@ -19,15 +19,15 @@ class ComposerAutoloaderInit123db0ef3651fb5cae06d63cfb1e1dfe
19
  return self::$loader;
20
  }
21
 
22
- spl_autoload_register(array('ComposerAutoloaderInit123db0ef3651fb5cae06d63cfb1e1dfe', 'loadClassLoader'), true, true);
23
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
24
- spl_autoload_unregister(array('ComposerAutoloaderInit123db0ef3651fb5cae06d63cfb1e1dfe', '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\ComposerStaticInit123db0ef3651fb5cae06d63cfb1e1dfe::getInitializer($loader));
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 ComposerAutoloaderInit1a67f9403ff49ace0e880caa31b6d5a3
6
  {
7
  private static $loader;
8
 
19
  return self::$loader;
20
  }
21
 
22
+ spl_autoload_register(array('ComposerAutoloaderInit1a67f9403ff49ace0e880caa31b6d5a3', 'loadClassLoader'), true, true);
23
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
24
+ spl_autoload_unregister(array('ComposerAutoloaderInit1a67f9403ff49ace0e880caa31b6d5a3', '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\ComposerStaticInit1a67f9403ff49ace0e880caa31b6d5a3::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 ComposerStaticInit123db0ef3651fb5cae06d63cfb1e1dfe
8
  {
9
  public static $classMap = array (
10
  'Browser' => __DIR__ . '/../..' . '/classes/wpdesk/settings-api/modules/sysinfo/browser.php',
@@ -56,7 +56,7 @@ class ComposerStaticInit123db0ef3651fb5cae06d63cfb1e1dfe
56
  public static function getInitializer(ClassLoader $loader)
57
  {
58
  return \Closure::bind(function () use ($loader) {
59
- $loader->classMap = ComposerStaticInit123db0ef3651fb5cae06d63cfb1e1dfe::$classMap;
60
 
61
  }, null, ClassLoader::class);
62
  }
4
 
5
  namespace Composer\Autoload;
6
 
7
+ class ComposerStaticInit1a67f9403ff49ace0e880caa31b6d5a3
8
  {
9
  public static $classMap = array (
10
  'Browser' => __DIR__ . '/../..' . '/classes/wpdesk/settings-api/modules/sysinfo/browser.php',
56
  public static function getInitializer(ClassLoader $loader)
57
  {
58
  return \Closure::bind(function () use ($loader) {
59
+ $loader->classMap = ComposerStaticInit1a67f9403ff49ace0e880caa31b6d5a3::$classMap;
60
 
61
  }, null, ClassLoader::class);
62
  }