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

Version Description

  • 2020-08-25 =
  • Fixed overwriting of field classes by WooCommerce locale
Download this release

Release Info

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

Code changes from version 2.5.1 to 2.5.2

classes/plugin.php CHANGED
@@ -230,6 +230,9 @@ class Flexible_Checkout_Fields_Plugin extends \FcfVendor\WPDesk\PluginBuilder\Pl
230
  foreach ( $base as $key => $field ) {
231
  unset( $base[ $key ]['placeholder'] );
232
  unset( $base[ $key ]['label'] );
 
 
 
233
 
234
  // field is force-required for given locale when FCF have shipping or billing field required
235
  $shipping_key = 'shipping_' . $key;
230
  foreach ( $base as $key => $field ) {
231
  unset( $base[ $key ]['placeholder'] );
232
  unset( $base[ $key ]['label'] );
233
+ if ( version_compare( WC()->version, '4.4.1', '>=' ) ) {
234
+ unset( $base[ $key ]['class'] );
235
+ }
236
 
237
  // field is force-required for given locale when FCF have shipping or billing field required
238
  $shipping_key = 'shipping_' . $key;
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.5.1
7
  Author: WP Desk
8
  Author URI: https://www.wpdesk.net/
9
  Text Domain: flexible-checkout-fields
@@ -39,7 +39,7 @@ if ( ! defined( 'ABSPATH' ) ) {
39
 
40
 
41
  /* THIS VARIABLE CAN BE CHANGED AUTOMATICALLY */
42
- $plugin_version = '2.5.1';
43
 
44
  define( 'FLEXIBLE_CHECKOUT_FIELDS_VERSION', $plugin_version );
45
 
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.5.2
7
  Author: WP Desk
8
  Author URI: https://www.wpdesk.net/
9
  Text Domain: flexible-checkout-fields
39
 
40
 
41
  /* THIS VARIABLE CAN BE CHANGED AUTOMATICALLY */
42
+ $plugin_version = '2.5.2';
43
 
44
  define( 'FLEXIBLE_CHECKOUT_FIELDS_VERSION', $plugin_version );
45
 
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-08-10T11:29:09+00:00\n"
11
- "PO-Revision-Date: 2020-08-10T11:29:09+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"
@@ -121,109 +121,109 @@ msgstr ""
121
  msgid "Post code"
122
  msgstr ""
123
 
124
- #: /builds/wpdesk/flexible-checkout-fields/classes/plugin.php:292
125
  msgid "Billing"
126
  msgstr ""
127
 
128
- #: /builds/wpdesk/flexible-checkout-fields/classes/plugin.php:298
129
  msgid "Shipping"
130
  msgstr ""
131
 
132
- #: /builds/wpdesk/flexible-checkout-fields/classes/plugin.php:304
133
  msgid "Order"
134
  msgstr ""
135
 
136
- #: /builds/wpdesk/flexible-checkout-fields/classes/plugin.php:318
137
  msgid "Single Line Text"
138
  msgstr ""
139
 
140
- #: /builds/wpdesk/flexible-checkout-fields/classes/plugin.php:322
141
  msgid "Paragraph Text"
142
  msgstr ""
143
 
144
- #: /builds/wpdesk/flexible-checkout-fields/classes/plugin.php:330
145
- #: /builds/wpdesk/flexible-checkout-fields/classes/plugin.php:335
146
  msgid "Checkbox"
147
  msgstr ""
148
 
149
- #: /builds/wpdesk/flexible-checkout-fields/classes/plugin.php:340
150
  msgid "Radio button"
151
  msgstr ""
152
 
153
- #: /builds/wpdesk/flexible-checkout-fields/classes/plugin.php:345
154
  msgid "Select (Drop Down)"
155
  msgstr ""
156
 
157
- #: /builds/wpdesk/flexible-checkout-fields/classes/plugin.php:350
158
  msgid "Multi-select"
159
  msgstr ""
160
 
161
- #: /builds/wpdesk/flexible-checkout-fields/classes/plugin.php:355
162
  msgid "Date"
163
  msgstr ""
164
 
165
- #: /builds/wpdesk/flexible-checkout-fields/classes/plugin.php:360
166
  msgid "Time"
167
  msgstr ""
168
 
169
- #: /builds/wpdesk/flexible-checkout-fields/classes/plugin.php:365
170
  msgid "Color Picker"
171
  msgstr ""
172
 
173
- #: /builds/wpdesk/flexible-checkout-fields/classes/plugin.php:370
174
  msgid "Headline"
175
  msgstr ""
176
 
177
- #: /builds/wpdesk/flexible-checkout-fields/classes/plugin.php:375
178
  msgid "HTML"
179
  msgstr ""
180
 
181
- #: /builds/wpdesk/flexible-checkout-fields/classes/plugin.php:380
182
  msgid "File Upload"
183
  msgstr ""
184
 
185
- #: /builds/wpdesk/flexible-checkout-fields/classes/plugin.php:943
186
  msgid "Advanced"
187
  msgstr ""
188
 
189
- #: /builds/wpdesk/flexible-checkout-fields/classes/plugin.php:1019
190
  msgid "Uploading file..."
191
  msgstr ""
192
 
193
- #: /builds/wpdesk/flexible-checkout-fields/classes/plugin.php:1066
194
  msgid "Close"
195
  msgstr ""
196
 
197
- #: /builds/wpdesk/flexible-checkout-fields/classes/plugin.php:1067
198
  msgid "Today"
199
  msgstr ""
200
 
201
- #: /builds/wpdesk/flexible-checkout-fields/classes/plugin.php:1070
202
  msgid "Next"
203
  msgstr ""
204
 
205
- #: /builds/wpdesk/flexible-checkout-fields/classes/plugin.php:1071
206
  msgid "Previous"
207
  msgstr ""
208
 
209
- #: /builds/wpdesk/flexible-checkout-fields/classes/plugin.php:1099
210
  #: /builds/wpdesk/flexible-checkout-fields/classes/settings.php:165
211
  #: /builds/wpdesk/flexible-checkout-fields/vendor_prefixed/wpdesk/wp-builder/src/Plugin/AbstractPlugin.php:198
212
  #: /builds/wpdesk/flexible-checkout-fields/vendor_prefixed/wpdesk/wp-wpdesk-helper/src/Page/SettingsPage.php:46
213
  msgid "Settings"
214
  msgstr ""
215
 
216
- #: /builds/wpdesk/flexible-checkout-fields/classes/plugin.php:1101
217
  #: /builds/wpdesk/flexible-checkout-fields/vendor_prefixed/wpdesk/wp-builder/src/Plugin/AbstractPlugin.php:194
218
  msgid "Docs"
219
  msgstr ""
220
 
221
- #: /builds/wpdesk/flexible-checkout-fields/classes/plugin.php:1102
222
  #: /builds/wpdesk/flexible-checkout-fields/vendor_prefixed/wpdesk/wp-builder/src/Plugin/AbstractPlugin.php:191
223
  msgid "Support"
224
  msgstr ""
225
 
226
- #: /builds/wpdesk/flexible-checkout-fields/classes/plugin.php:1108
227
  msgid "Upgrade"
228
  msgstr ""
229
 
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-08-25T14:01:56+00:00\n"
11
+ "PO-Revision-Date: 2020-08-25T14:01:56+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"
121
  msgid "Post code"
122
  msgstr ""
123
 
124
+ #: /builds/wpdesk/flexible-checkout-fields/classes/plugin.php:295
125
  msgid "Billing"
126
  msgstr ""
127
 
128
+ #: /builds/wpdesk/flexible-checkout-fields/classes/plugin.php:301
129
  msgid "Shipping"
130
  msgstr ""
131
 
132
+ #: /builds/wpdesk/flexible-checkout-fields/classes/plugin.php:307
133
  msgid "Order"
134
  msgstr ""
135
 
136
+ #: /builds/wpdesk/flexible-checkout-fields/classes/plugin.php:321
137
  msgid "Single Line Text"
138
  msgstr ""
139
 
140
+ #: /builds/wpdesk/flexible-checkout-fields/classes/plugin.php:325
141
  msgid "Paragraph Text"
142
  msgstr ""
143
 
144
+ #: /builds/wpdesk/flexible-checkout-fields/classes/plugin.php:333
145
+ #: /builds/wpdesk/flexible-checkout-fields/classes/plugin.php:338
146
  msgid "Checkbox"
147
  msgstr ""
148
 
149
+ #: /builds/wpdesk/flexible-checkout-fields/classes/plugin.php:343
150
  msgid "Radio button"
151
  msgstr ""
152
 
153
+ #: /builds/wpdesk/flexible-checkout-fields/classes/plugin.php:348
154
  msgid "Select (Drop Down)"
155
  msgstr ""
156
 
157
+ #: /builds/wpdesk/flexible-checkout-fields/classes/plugin.php:353
158
  msgid "Multi-select"
159
  msgstr ""
160
 
161
+ #: /builds/wpdesk/flexible-checkout-fields/classes/plugin.php:358
162
  msgid "Date"
163
  msgstr ""
164
 
165
+ #: /builds/wpdesk/flexible-checkout-fields/classes/plugin.php:363
166
  msgid "Time"
167
  msgstr ""
168
 
169
+ #: /builds/wpdesk/flexible-checkout-fields/classes/plugin.php:368
170
  msgid "Color Picker"
171
  msgstr ""
172
 
173
+ #: /builds/wpdesk/flexible-checkout-fields/classes/plugin.php:373
174
  msgid "Headline"
175
  msgstr ""
176
 
177
+ #: /builds/wpdesk/flexible-checkout-fields/classes/plugin.php:378
178
  msgid "HTML"
179
  msgstr ""
180
 
181
+ #: /builds/wpdesk/flexible-checkout-fields/classes/plugin.php:383
182
  msgid "File Upload"
183
  msgstr ""
184
 
185
+ #: /builds/wpdesk/flexible-checkout-fields/classes/plugin.php:946
186
  msgid "Advanced"
187
  msgstr ""
188
 
189
+ #: /builds/wpdesk/flexible-checkout-fields/classes/plugin.php:1022
190
  msgid "Uploading file..."
191
  msgstr ""
192
 
193
+ #: /builds/wpdesk/flexible-checkout-fields/classes/plugin.php:1069
194
  msgid "Close"
195
  msgstr ""
196
 
197
+ #: /builds/wpdesk/flexible-checkout-fields/classes/plugin.php:1070
198
  msgid "Today"
199
  msgstr ""
200
 
201
+ #: /builds/wpdesk/flexible-checkout-fields/classes/plugin.php:1073
202
  msgid "Next"
203
  msgstr ""
204
 
205
+ #: /builds/wpdesk/flexible-checkout-fields/classes/plugin.php:1074
206
  msgid "Previous"
207
  msgstr ""
208
 
209
+ #: /builds/wpdesk/flexible-checkout-fields/classes/plugin.php:1102
210
  #: /builds/wpdesk/flexible-checkout-fields/classes/settings.php:165
211
  #: /builds/wpdesk/flexible-checkout-fields/vendor_prefixed/wpdesk/wp-builder/src/Plugin/AbstractPlugin.php:198
212
  #: /builds/wpdesk/flexible-checkout-fields/vendor_prefixed/wpdesk/wp-wpdesk-helper/src/Page/SettingsPage.php:46
213
  msgid "Settings"
214
  msgstr ""
215
 
216
+ #: /builds/wpdesk/flexible-checkout-fields/classes/plugin.php:1104
217
  #: /builds/wpdesk/flexible-checkout-fields/vendor_prefixed/wpdesk/wp-builder/src/Plugin/AbstractPlugin.php:194
218
  msgid "Docs"
219
  msgstr ""
220
 
221
+ #: /builds/wpdesk/flexible-checkout-fields/classes/plugin.php:1105
222
  #: /builds/wpdesk/flexible-checkout-fields/vendor_prefixed/wpdesk/wp-builder/src/Plugin/AbstractPlugin.php:191
223
  msgid "Support"
224
  msgstr ""
225
 
226
+ #: /builds/wpdesk/flexible-checkout-fields/classes/plugin.php:1111
227
  msgid "Upgrade"
228
  msgstr ""
229
 
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.5
8
- Stable tag: 2.5.1
9
  Requires PHP: 5.6
10
  License: GPLv3 or later
11
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
@@ -187,6 +187,9 @@ If you are upgrading from the old WooCommerce Checkout Fields version (1.1, wooc
187
 
188
  == Changelog ==
189
 
 
 
 
190
  = 2.5.1 - 2020-08-10 =
191
  * Added support for WordPress 5.5
192
 
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.5
8
+ Stable tag: 2.5.2
9
  Requires PHP: 5.6
10
  License: GPLv3 or later
11
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
187
 
188
  == Changelog ==
189
 
190
+ = 2.5.2 - 2020-08-25 =
191
+ * Fixed overwriting of field classes by WooCommerce locale
192
+
193
  = 2.5.1 - 2020-08-10 =
194
  * Added support for WordPress 5.5
195
 
vendor/autoload.php CHANGED
@@ -4,4 +4,4 @@
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
- return ComposerAutoloaderInitd6182208f8ba2c610fdb0fbd044cf64f::getLoader();
4
 
5
  require_once __DIR__ . '/composer/autoload_real.php';
6
 
7
+ return ComposerAutoloaderInit2ff77db2ed274bcc3f3fe501619fa1f6::getLoader();
vendor/composer/autoload_real.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  // autoload_real.php @generated by Composer
4
 
5
- class ComposerAutoloaderInitd6182208f8ba2c610fdb0fbd044cf64f
6
  {
7
  private static $loader;
8
 
@@ -19,15 +19,15 @@ class ComposerAutoloaderInitd6182208f8ba2c610fdb0fbd044cf64f
19
  return self::$loader;
20
  }
21
 
22
- spl_autoload_register(array('ComposerAutoloaderInitd6182208f8ba2c610fdb0fbd044cf64f', 'loadClassLoader'), true, true);
23
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
24
- spl_autoload_unregister(array('ComposerAutoloaderInitd6182208f8ba2c610fdb0fbd044cf64f', '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\ComposerStaticInitd6182208f8ba2c610fdb0fbd044cf64f::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 ComposerAutoloaderInit2ff77db2ed274bcc3f3fe501619fa1f6
6
  {
7
  private static $loader;
8
 
19
  return self::$loader;
20
  }
21
 
22
+ spl_autoload_register(array('ComposerAutoloaderInit2ff77db2ed274bcc3f3fe501619fa1f6', 'loadClassLoader'), true, true);
23
  self::$loader = $loader = new \Composer\Autoload\ClassLoader();
24
+ spl_autoload_unregister(array('ComposerAutoloaderInit2ff77db2ed274bcc3f3fe501619fa1f6', '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\ComposerStaticInit2ff77db2ed274bcc3f3fe501619fa1f6::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 ComposerStaticInitd6182208f8ba2c610fdb0fbd044cf64f
8
  {
9
  public static $prefixLengthsPsr4 = array (
10
  'P' =>
@@ -279,9 +279,9 @@ class ComposerStaticInitd6182208f8ba2c610fdb0fbd044cf64f
279
  public static function getInitializer(ClassLoader $loader)
280
  {
281
  return \Closure::bind(function () use ($loader) {
282
- $loader->prefixLengthsPsr4 = ComposerStaticInitd6182208f8ba2c610fdb0fbd044cf64f::$prefixLengthsPsr4;
283
- $loader->prefixDirsPsr4 = ComposerStaticInitd6182208f8ba2c610fdb0fbd044cf64f::$prefixDirsPsr4;
284
- $loader->classMap = ComposerStaticInitd6182208f8ba2c610fdb0fbd044cf64f::$classMap;
285
 
286
  }, null, ClassLoader::class);
287
  }
4
 
5
  namespace Composer\Autoload;
6
 
7
+ class ComposerStaticInit2ff77db2ed274bcc3f3fe501619fa1f6
8
  {
9
  public static $prefixLengthsPsr4 = array (
10
  'P' =>
279
  public static function getInitializer(ClassLoader $loader)
280
  {
281
  return \Closure::bind(function () use ($loader) {
282
+ $loader->prefixLengthsPsr4 = ComposerStaticInit2ff77db2ed274bcc3f3fe501619fa1f6::$prefixLengthsPsr4;
283
+ $loader->prefixDirsPsr4 = ComposerStaticInit2ff77db2ed274bcc3f3fe501619fa1f6::$prefixDirsPsr4;
284
+ $loader->classMap = ComposerStaticInit2ff77db2ed274bcc3f3fe501619fa1f6::$classMap;
285
 
286
  }, null, ClassLoader::class);
287
  }