WooCommerce Checkout Field Editor (Manager) Pro - Version 1.3.7

Version Description

  • Fixed the issue of not showing placeholder text for select fields.
  • Fixed the warning "Deprecated: Non-static method should not be called statically"
Download this release

Release Info

Developer ThemeHigh
Plugin Icon 128x128 WooCommerce Checkout Field Editor (Manager) Pro
Version 1.3.7
Comparing to
See all releases

Code changes from version 1.3.6 to 1.3.7

checkout-form-designer.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Checkout Field Editor for WooCommerce
4
  * Description: Customize WooCommerce checkout fields(Add, Edit, Delete and re-arrange fields).
5
  * Author: ThemeHiGH
6
- * Version: 1.3.6
7
  * Author URI: https://www.themehigh.com
8
  * Plugin URI: https://www.themehigh.com
9
  * Text Domain: woo-checkout-field-editor-pro
@@ -25,7 +25,7 @@ if (!function_exists('is_woocommerce_active')){
25
  }
26
 
27
  if(is_woocommerce_active()) {
28
- define('THWCFD_VERSION', '1.3.6');
29
  !defined('THWCFD_BASE_NAME') && define('THWCFD_BASE_NAME', plugin_basename( __FILE__ ));
30
  !defined('THWCFD_PATH') && define('THWCFD_PATH', plugin_dir_path( __FILE__ ));
31
  !defined('THWCFD_URL') && define('THWCFD_URL', plugins_url( '/', __FILE__ ));
3
  * Plugin Name: Checkout Field Editor for WooCommerce
4
  * Description: Customize WooCommerce checkout fields(Add, Edit, Delete and re-arrange fields).
5
  * Author: ThemeHiGH
6
+ * Version: 1.3.7
7
  * Author URI: https://www.themehigh.com
8
  * Plugin URI: https://www.themehigh.com
9
  * Text Domain: woo-checkout-field-editor-pro
25
  }
26
 
27
  if(is_woocommerce_active()) {
28
+ define('THWCFD_VERSION', '1.3.7');
29
  !defined('THWCFD_BASE_NAME') && define('THWCFD_BASE_NAME', plugin_basename( __FILE__ ));
30
  !defined('THWCFD_PATH') && define('THWCFD_PATH', plugin_dir_path( __FILE__ ));
31
  !defined('THWCFD_URL') && define('THWCFD_URL', plugins_url( '/', __FILE__ ));
classes/class-thwcfd-utils.php CHANGED
@@ -174,11 +174,11 @@ class THWCFD_Utils {
174
  foreach($options_arr as $option){
175
  $okey = isset($option['key']) ? $option['key'] : '';
176
  $otext = isset($option['text']) ? $option['text'] : '';
177
- $okey = $okey ? $okey : $otext;
178
 
179
- if($okey && $otext){
180
  $options[$okey] = $otext;
181
- }
182
  }
183
  }
184
  return $options;
@@ -190,12 +190,12 @@ class THWCFD_Utils {
190
  $options_arr = array();
191
 
192
  foreach($options as $okey => $otext){
193
- $okey = $okey ? $okey : $otext;
194
 
195
- if($okey && $otext){
196
  array_push($options_arr, array("key" => $okey, "text" => $otext));
197
  //array_push($options_arr, array("key" => esc_attr($okey), "text" => esc_attr($otext)));
198
- }
199
  }
200
 
201
  $options_json = json_encode($options_arr);
@@ -267,7 +267,7 @@ class THWCFD_Utils {
267
  return false;
268
  }
269
 
270
- public function is_blank($value) {
271
  return empty($value) && !is_numeric($value);
272
  }
273
 
174
  foreach($options_arr as $option){
175
  $okey = isset($option['key']) ? $option['key'] : '';
176
  $otext = isset($option['text']) ? $option['text'] : '';
177
+ //$okey = $okey ? $okey : $otext;
178
 
179
+ //if($okey || $otext){
180
  $options[$okey] = $otext;
181
+ //}
182
  }
183
  }
184
  return $options;
190
  $options_arr = array();
191
 
192
  foreach($options as $okey => $otext){
193
+ //$okey = $okey ? $okey : $otext;
194
 
195
+ //if($okey && $otext){
196
  array_push($options_arr, array("key" => $okey, "text" => $otext));
197
  //array_push($options_arr, array("key" => esc_attr($okey), "text" => esc_attr($otext)));
198
+ //}
199
  }
200
 
201
  $options_json = json_encode($options_arr);
267
  return false;
268
  }
269
 
270
+ public static function is_blank($value) {
271
  return empty($value) && !is_numeric($value);
272
  }
273
 
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: ThemeHigh
3
  Donate link: https://themehigh.com/
4
  Tags: checkout field editor, woocommerce checkout field editor, checkout manager, woocommerce checkout manager, checkout field customizer, checkout form editor, checkout form customizer, checkout, WooCommerce checkout, checkout form designer, checkout
5
  Requires at least: 4.9
6
- Tested up to: 5.2.2
7
- Stable tag: 1.3.6
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -149,6 +149,10 @@ Yes. There is a button 'reset to default fields' to go back to the WooCommerce d
149
  8. Newly added field
150
 
151
  == Changelog ==
 
 
 
 
152
  = 1.3.6 =
153
  * New field types added (Textarea, Radio, Email, Phone, Password).
154
 
3
  Donate link: https://themehigh.com/
4
  Tags: checkout field editor, woocommerce checkout field editor, checkout manager, woocommerce checkout manager, checkout field customizer, checkout form editor, checkout form customizer, checkout, WooCommerce checkout, checkout form designer, checkout
5
  Requires at least: 4.9
6
+ Tested up to: 5.2.3
7
+ Stable tag: 1.3.7
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
149
  8. Newly added field
150
 
151
  == Changelog ==
152
+ = 1.3.7 =
153
+ * Fixed the issue of not showing placeholder text for select fields.
154
+ * Fixed the warning "Deprecated: Non-static method should not be called statically"
155
+
156
  = 1.3.6 =
157
  * New field types added (Textarea, Radio, Email, Phone, Password).
158