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

Version Description

  • 2019-07-11 =
  • Fixed error while activating in multisite environment
Download this release

Release Info

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

Code changes from version 2.0.3 to 2.0.4

classes/class-flexible-checkout-fields-plugin.php CHANGED
@@ -68,7 +68,6 @@ class Flexible_Checkout_Fields_Plugin extends \WPDesk\PluginBuilder\Plugin\Abstr
68
  $this->plugin_url = $this->plugin_info->get_plugin_url();
69
  $this->plugin_path = $this->plugin_info->get_plugin_dir();
70
  $this->template_path = $this->plugin_info->get_text_domain();
71
- $this->template_path = $this->plugin_info->get_text_domain();
72
  $this->settings_url = admin_url( 'admin.php?page=wc-settings&tab=integration&section=integration-fakturownia' );
73
  $this->default_view_args = [ 'plugin_url' => $this->get_plugin_url() ];
74
  $this->plugin_has_settings = false;
@@ -88,8 +87,8 @@ class Flexible_Checkout_Fields_Plugin extends \WPDesk\PluginBuilder\Plugin\Abstr
88
  * Load dependencies.
89
  */
90
  private function load_dependencies() {
91
- require_once 'settings.php';
92
- require_once 'field-options.php';
93
  }
94
 
95
  /**
@@ -969,7 +968,10 @@ class Flexible_Checkout_Fields_Plugin extends \WPDesk\PluginBuilder\Plugin\Abstr
969
  */
970
  public function admin_enqueue_scripts() {
971
  $suffix = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min';
972
- $current_screen = get_current_screen();
 
 
 
973
  if ( isset( $current_screen ) && 'woocommerce_page_inspire_checkout_fields_settings' === $current_screen->id ) {
974
  wp_enqueue_style( 'jquery-ui-style',
975
  '//ajax.googleapis.com/ajax/libs/jqueryui/' . '1.9.2' . '/themes/smoothness/jquery-ui.css' );
68
  $this->plugin_url = $this->plugin_info->get_plugin_url();
69
  $this->plugin_path = $this->plugin_info->get_plugin_dir();
70
  $this->template_path = $this->plugin_info->get_text_domain();
 
71
  $this->settings_url = admin_url( 'admin.php?page=wc-settings&tab=integration&section=integration-fakturownia' );
72
  $this->default_view_args = [ 'plugin_url' => $this->get_plugin_url() ];
73
  $this->plugin_has_settings = false;
87
  * Load dependencies.
88
  */
89
  private function load_dependencies() {
90
+ require_once __DIR__ . '/settings.php';
91
+ require_once __DIR__ . '/field-options.php';
92
  }
93
 
94
  /**
968
  */
969
  public function admin_enqueue_scripts() {
970
  $suffix = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min';
971
+ if (function_exists('get_current_screen')) {
972
+ $current_screen = get_current_screen();
973
+ }
974
+
975
  if ( isset( $current_screen ) && 'woocommerce_page_inspire_checkout_fields_settings' === $current_screen->id ) {
976
  wp_enqueue_style( 'jquery-ui-style',
977
  '//ajax.googleapis.com/ajax/libs/jqueryui/' . '1.9.2' . '/themes/smoothness/jquery-ui.css' );
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.0.3
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.0.3';
41
- $plugin_release_timestamp = '2019-07-11 13:06';
42
  define( 'FLEXIBLE_CHECKOUT_FIELDS_VERSION', $plugin_version );
43
 
44
  if ( ! defined( 'FCF_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.0.4
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.0.4';
41
+ $plugin_release_timestamp = '2019-07-15 12:27';
42
  define( 'FLEXIBLE_CHECKOUT_FIELDS_VERSION', $plugin_version );
43
 
44
  if ( ! defined( 'FCF_VERSION' ) ) {
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.2
7
- Stable tag: 2.0.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
  = 2.0.3 - 2019-07-11 =
192
  * Fixed rare change for fatal error when activating plugin
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.2.2
7
+ Stable tag: 2.0.4
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.0.4 - 2019-07-11 =
192
+ * Fixed error while activating in multisite environment
193
+
194
  = 2.0.3 - 2019-07-11 =
195
  * Fixed rare change for fatal error when activating plugin
196
 
vendor/autoload.php CHANGED
@@ -4,4 +4,4 @@
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
- return ComposerAutoloaderInit92112b3eff003d58ae8f564d870b7d04::getLoader();
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
+ return ComposerAutoloaderInit32851010111ab92b9ebed8263ddfe2d8::getLoader();
vendor/composer/autoload_real.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
- class ComposerAutoloaderInit92112b3eff003d58ae8f564d870b7d04
6
  {
7
  private static $loader;
8
 
@@ -19,15 +19,15 @@ class ComposerAutoloaderInit92112b3eff003d58ae8f564d870b7d04
19
  return self::$loader;
20
  }
21
 
22
- spl_autoload_register(array('ComposerAutoloaderInit92112b3eff003d58ae8f564d870b7d04', 'loadClassLoader'), true, true);
23
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
24
- spl_autoload_unregister(array('ComposerAutoloaderInit92112b3eff003d58ae8f564d870b7d04', '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\ComposerStaticInit92112b3eff003d58ae8f564d870b7d04::getInitializer($loader));
31
  } else {
32
  $map = require __DIR__ . '/autoload_namespaces.php';
33
  foreach ($map as $namespace => $path) {
@@ -48,19 +48,19 @@ class ComposerAutoloaderInit92112b3eff003d58ae8f564d870b7d04
48
  $loader->register(true);
49
 
50
  if ($useStaticLoader) {
51
- $includeFiles = Composer\Autoload\ComposerStaticInit92112b3eff003d58ae8f564d870b7d04::$files;
52
  } else {
53
  $includeFiles = require __DIR__ . '/autoload_files.php';
54
  }
55
  foreach ($includeFiles as $fileIdentifier => $file) {
56
- composerRequire92112b3eff003d58ae8f564d870b7d04($fileIdentifier, $file);
57
  }
58
 
59
  return $loader;
60
  }
61
  }
62
 
63
- function composerRequire92112b3eff003d58ae8f564d870b7d04($fileIdentifier, $file)
64
  {
65
  if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
66
  require $file;
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
+ class ComposerAutoloaderInit32851010111ab92b9ebed8263ddfe2d8
6
  {
7
  private static $loader;
8
 
19
  return self::$loader;
20
  }
21
 
22
+ spl_autoload_register(array('ComposerAutoloaderInit32851010111ab92b9ebed8263ddfe2d8', 'loadClassLoader'), true, true);
23
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
24
+ spl_autoload_unregister(array('ComposerAutoloaderInit32851010111ab92b9ebed8263ddfe2d8', '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\ComposerStaticInit32851010111ab92b9ebed8263ddfe2d8::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\ComposerStaticInit32851010111ab92b9ebed8263ddfe2d8::$files;
52
  } else {
53
  $includeFiles = require __DIR__ . '/autoload_files.php';
54
  }
55
  foreach ($includeFiles as $fileIdentifier => $file) {
56
+ composerRequire32851010111ab92b9ebed8263ddfe2d8($fileIdentifier, $file);
57
  }
58
 
59
  return $loader;
60
  }
61
  }
62
 
63
+ function composerRequire32851010111ab92b9ebed8263ddfe2d8($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 ComposerStaticInit92112b3eff003d58ae8f564d870b7d04
8
  {
9
  public static $files = array (
10
  '0509b34a4bd7aebefeac629c9dc8a978' => __DIR__ . '/..' . '/wpdesk/wp-notice/src/WPDesk/notice-functions.php',
@@ -281,9 +281,9 @@ class ComposerStaticInit92112b3eff003d58ae8f564d870b7d04
281
  public static function getInitializer(ClassLoader $loader)
282
  {
283
  return \Closure::bind(function () use ($loader) {
284
- $loader->prefixLengthsPsr4 = ComposerStaticInit92112b3eff003d58ae8f564d870b7d04::$prefixLengthsPsr4;
285
- $loader->prefixDirsPsr4 = ComposerStaticInit92112b3eff003d58ae8f564d870b7d04::$prefixDirsPsr4;
286
- $loader->classMap = ComposerStaticInit92112b3eff003d58ae8f564d870b7d04::$classMap;
287
 
288
  }, null, ClassLoader::class);
289
  }
4
 
5
  namespace Composer\Autoload;
6
 
7
+ class ComposerStaticInit32851010111ab92b9ebed8263ddfe2d8
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 = ComposerStaticInit32851010111ab92b9ebed8263ddfe2d8::$prefixLengthsPsr4;
285
+ $loader->prefixDirsPsr4 = ComposerStaticInit32851010111ab92b9ebed8263ddfe2d8::$prefixDirsPsr4;
286
+ $loader->classMap = ComposerStaticInit32851010111ab92b9ebed8263ddfe2d8::$classMap;
287
 
288
  }, null, ClassLoader::class);
289
  }