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

Version Description

  • 2019-03-14 =
  • Fixed account error notice on checkout page
  • Fixed single quote in placeholder
  • Fixed licence checking
  • Remove slashes from additional information
Download this release

Release Info

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

Code changes from version 1.9.0 to 1.9.1

classes/wpdesk/class-helper.php DELETED
@@ -1,54 +0,0 @@
1
- <?php
2
-
3
- if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
4
-
5
- if ( ! class_exists( 'WPDesk_Helper_Plugin' ) ) {
6
-
7
- class WPDesk_Helper_Plugin {
8
-
9
- protected $plugin_data;
10
-
11
- protected $text_domain;
12
-
13
- protected $ame_activated_key;
14
-
15
- protected $ame_activation_tab_key;
16
-
17
- function __construct( $plugin_data ) {
18
- global $wpdesk_helper_plugins;
19
-
20
- $this->plugin_data = $plugin_data;
21
- if ( ! isset( $wpdesk_helper_plugins ) ) $wpdesk_helper_plugins = array();
22
- $plugin_data['helper_plugin'] = $this;
23
- $wpdesk_helper_plugins[] = $plugin_data;
24
-
25
- $this->ame_activated_key = 'api_' . dirname($plugin_data['plugin']) . '_activated';
26
- $this->ame_activation_tab_key = 'api_' . dirname($plugin_data['plugin']) . '_dashboard';
27
-
28
- }
29
-
30
- public function inactive_notice() { ?>
31
- <?php if ( ! current_user_can( 'manage_options' ) ) return; ?>
32
- <?php if ( 1==1 && isset( $_GET['page'] ) && $this->ame_activation_tab_key == $_GET['page'] ) return; ?>
33
- <div class="update-nag">
34
- <?php printf( __( 'The %s%s%s License Key has not been activated, so the plugin is inactive! %sClick here%s to activate the license key and the plugin.', 'wpdesk-plugin' ), '<strong>', $this->plugin_data['product_id'], '</strong>', '<a href="' . esc_url( admin_url( 'admin.php?page='.$this->ame_activation_tab_key ) ) . '">', '</a>' ); ?>
35
- </div>
36
- <?php
37
- }
38
-
39
-
40
- function is_active( $add_notice = false ) {
41
- if ( get_option( $this->ame_activated_key, '0' ) != 'Activated' ) {
42
- if ( $add_notice ) {
43
- add_action( 'admin_notices', array( $this, 'inactive_notice' ) );
44
- }
45
- return false;
46
- }
47
- else {
48
- return true;
49
- }
50
- }
51
-
52
- }
53
-
54
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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.9.0
7
  Author: WP Desk
8
  Author URI: https://www.wpdesk.net/
9
  Text Domain: flexible-checkout-fields
@@ -11,7 +11,7 @@
11
  Requires at least: 4.6
12
  Tested up to: 5.1.0
13
  WC requires at least: 3.1.0
14
- WC tested up to: 3.5.5
15
 
16
  Copyright 2017 WP Desk Ltd.
17
 
@@ -33,7 +33,7 @@
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,7 +68,7 @@
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
 
@@ -510,8 +510,12 @@
510
  $checkout_field_type = $this->get_fields();
511
  if ( !empty( $settings ) ) {
512
  $new = array();
 
 
 
513
  $priority = 0;
514
  foreach ( $settings as $key => $type ) {
 
515
  if ( $key != 'billing' && $key != 'shipping' && $key != 'order' ) {
516
  if ( get_option('inspire_checkout_fields_' . $key, '0' ) == '0' ) {
517
  continue;
@@ -553,7 +557,7 @@
553
  $new[ $key ][ $field['name'] ]['label'] = stripcslashes( wpdesk__( $field['label'], 'flexible-checkout-fields' ) );
554
  }
555
  if ( isset( $field['placeholder'] ) ) {
556
- $new[$key][$field['name']]['placeholder'] = wpdesk__( $field['placeholder'], 'flexible-checkout-fields' );
557
  }
558
  else {
559
  $new[$key][$field['name']]['placeholder'] = '';
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.1
7
  Author: WP Desk
8
  Author URI: https://www.wpdesk.net/
9
  Text Domain: flexible-checkout-fields
11
  Requires at least: 4.6
12
  Tested up to: 5.1.0
13
  WC requires at least: 3.1.0
14
+ WC tested up to: 3.5.6
15
 
16
  Copyright 2017 WP Desk Ltd.
17
 
33
 
34
  if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
35
 
36
+ $plugin_version = '1.9.1';
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.1';
72
 
73
  protected $fields = array();
74
 
510
  $checkout_field_type = $this->get_fields();
511
  if ( !empty( $settings ) ) {
512
  $new = array();
513
+ if ( isset( $fields['account'] ) ) {
514
+ $new['account'] = array();
515
+ }
516
  $priority = 0;
517
  foreach ( $settings as $key => $type ) {
518
+
519
  if ( $key != 'billing' && $key != 'shipping' && $key != 'order' ) {
520
  if ( get_option('inspire_checkout_fields_' . $key, '0' ) == '0' ) {
521
  continue;
557
  $new[ $key ][ $field['name'] ]['label'] = stripcslashes( wpdesk__( $field['label'], 'flexible-checkout-fields' ) );
558
  }
559
  if ( isset( $field['placeholder'] ) ) {
560
+ $new[$key][$field['name']]['placeholder'] = wpdesk__( esc_attr( $field['placeholder'] ), 'flexible-checkout-fields' );
561
  }
562
  else {
563
  $new[$key][$field['name']]['placeholder'] = '';
inc/wpdesk-woo27-functions.php CHANGED
@@ -228,7 +228,7 @@ if ( !function_exists( 'wpdesk_update_order_meta' ) ) {
228
  else {
229
  $order_id = $order->id;
230
  }
231
- update_post_meta( $order_id, $meta_key, $meta_value );
232
  }
233
  else {
234
  if ( is_numeric( $order ) ) {
228
  else {
229
  $order_id = $order->id;
230
  }
231
+ update_post_meta( $order_id, $meta_key, $meta_value );
232
  }
233
  else {
234
  if ( is_numeric( $order ) ) {
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.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,6 +188,12 @@ If you are upgrading from the old WooCommerce Checkout Fields version (1.1, wooc
188
 
189
  == Changelog ==
190
 
 
 
 
 
 
 
191
  = 1.9.0 - 2019-02-26 =
192
  * Fixed section settings fields saving
193
 
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.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
+ = 1.9.1 - 2019-03-14 =
192
+ * Fixed account error notice on checkout page
193
+ * Fixed single quote in placeholder
194
+ * Fixed licence checking
195
+ * Remove slashes from additional information
196
+
197
  = 1.9.0 - 2019-02-26 =
198
  * Fixed section settings fields saving
199
 
vendor/autoload.php CHANGED
@@ -4,4 +4,4 @@
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
- return ComposerAutoloaderInit1a67f9403ff49ace0e880caa31b6d5a3::getLoader();
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
+ return ComposerAutoloaderInit19c71312ca61c57c07eb3c5f15b7ce62::getLoader();
vendor/composer/autoload_classmap.php CHANGED
@@ -18,7 +18,6 @@ return array(
18
  'Flexible_Checkout_Fields_User_Profile' => $baseDir . '/classes/user-profile.php',
19
  'S214_Sysinfo' => $baseDir . '/classes/wpdesk/settings-api/modules/sysinfo/class.s214-sysinfo.php',
20
  'WPDesk_Flexible_Checkout_Fields_Tracker' => $baseDir . '/classes/tracker.php',
21
- 'WPDesk_Helper_Plugin' => $baseDir . '/classes/wpdesk/class-helper.php',
22
  'WPDesk_Plugin_1_8' => $baseDir . '/classes/wpdesk/class-plugin.php',
23
  'WPDesk_S214_Settings_1_8' => $baseDir . '/classes/wpdesk/settings-api/class.s214-settings.php',
24
  'WPDesk_Settings_1_8' => $baseDir . '/classes/wpdesk/class-settings.php',
18
  'Flexible_Checkout_Fields_User_Profile' => $baseDir . '/classes/user-profile.php',
19
  'S214_Sysinfo' => $baseDir . '/classes/wpdesk/settings-api/modules/sysinfo/class.s214-sysinfo.php',
20
  'WPDesk_Flexible_Checkout_Fields_Tracker' => $baseDir . '/classes/tracker.php',
 
21
  'WPDesk_Plugin_1_8' => $baseDir . '/classes/wpdesk/class-plugin.php',
22
  'WPDesk_S214_Settings_1_8' => $baseDir . '/classes/wpdesk/settings-api/class.s214-settings.php',
23
  'WPDesk_Settings_1_8' => $baseDir . '/classes/wpdesk/class-settings.php',
vendor/composer/autoload_real.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
- class ComposerAutoloaderInit1a67f9403ff49ace0e880caa31b6d5a3
6
  {
7
  private static $loader;
8
 
@@ -19,15 +19,15 @@ class ComposerAutoloaderInit1a67f9403ff49ace0e880caa31b6d5a3
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) {
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
+ class ComposerAutoloaderInit19c71312ca61c57c07eb3c5f15b7ce62
6
  {
7
  private static $loader;
8
 
19
  return self::$loader;
20
  }
21
 
22
+ spl_autoload_register(array('ComposerAutoloaderInit19c71312ca61c57c07eb3c5f15b7ce62', 'loadClassLoader'), true, true);
23
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
24
+ spl_autoload_unregister(array('ComposerAutoloaderInit19c71312ca61c57c07eb3c5f15b7ce62', '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\ComposerStaticInit19c71312ca61c57c07eb3c5f15b7ce62::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 ComposerStaticInit1a67f9403ff49ace0e880caa31b6d5a3
8
  {
9
  public static $classMap = array (
10
  'Browser' => __DIR__ . '/../..' . '/classes/wpdesk/settings-api/modules/sysinfo/browser.php',
@@ -19,7 +19,6 @@ class ComposerStaticInit1a67f9403ff49ace0e880caa31b6d5a3
19
  'Flexible_Checkout_Fields_User_Profile' => __DIR__ . '/../..' . '/classes/user-profile.php',
20
  'S214_Sysinfo' => __DIR__ . '/../..' . '/classes/wpdesk/settings-api/modules/sysinfo/class.s214-sysinfo.php',
21
  'WPDesk_Flexible_Checkout_Fields_Tracker' => __DIR__ . '/../..' . '/classes/tracker.php',
22
- 'WPDesk_Helper_Plugin' => __DIR__ . '/../..' . '/classes/wpdesk/class-helper.php',
23
  'WPDesk_Plugin_1_8' => __DIR__ . '/../..' . '/classes/wpdesk/class-plugin.php',
24
  'WPDesk_S214_Settings_1_8' => __DIR__ . '/../..' . '/classes/wpdesk/settings-api/class.s214-settings.php',
25
  'WPDesk_Settings_1_8' => __DIR__ . '/../..' . '/classes/wpdesk/class-settings.php',
@@ -56,7 +55,7 @@ class ComposerStaticInit1a67f9403ff49ace0e880caa31b6d5a3
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
  }
4
 
5
  namespace Composer\Autoload;
6
 
7
+ class ComposerStaticInit19c71312ca61c57c07eb3c5f15b7ce62
8
  {
9
  public static $classMap = array (
10
  'Browser' => __DIR__ . '/../..' . '/classes/wpdesk/settings-api/modules/sysinfo/browser.php',
19
  'Flexible_Checkout_Fields_User_Profile' => __DIR__ . '/../..' . '/classes/user-profile.php',
20
  'S214_Sysinfo' => __DIR__ . '/../..' . '/classes/wpdesk/settings-api/modules/sysinfo/class.s214-sysinfo.php',
21
  'WPDesk_Flexible_Checkout_Fields_Tracker' => __DIR__ . '/../..' . '/classes/tracker.php',
 
22
  'WPDesk_Plugin_1_8' => __DIR__ . '/../..' . '/classes/wpdesk/class-plugin.php',
23
  'WPDesk_S214_Settings_1_8' => __DIR__ . '/../..' . '/classes/wpdesk/settings-api/class.s214-settings.php',
24
  'WPDesk_Settings_1_8' => __DIR__ . '/../..' . '/classes/wpdesk/class-settings.php',
55
  public static function getInitializer(ClassLoader $loader)
56
  {
57
  return \Closure::bind(function () use ($loader) {
58
+ $loader->classMap = ComposerStaticInit19c71312ca61c57c07eb3c5f15b7ce62::$classMap;
59
 
60
  }, null, ClassLoader::class);
61
  }