Smart Custom Fields - Version 1.6.6

Version Description

  • Fixed a bug that warning is out when the array isn't returned in the smart-cf-register-fields.
Download this release

Release Info

Developer inc2734
Plugin Icon wp plugin Smart Custom Fields
Version 1.6.6
Comparing to
See all releases

Code changes from version 1.6.5 to 1.6.6

Files changed (3) hide show
  1. classes/class.scf.php +12 -3
  2. readme.txt +5 -2
  3. smart-custom-fields.php +2 -2
classes/class.scf.php CHANGED
@@ -1,10 +1,10 @@
1
  <?php
2
  /**
3
  * SCF
4
- * Version : 1.3.1
5
  * Author : inc2734
6
  * Created : September 23, 2014
7
- * Modified : December 13, 2015
8
  * License : GPLv2 or later
9
  * License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
  */
@@ -588,7 +588,16 @@ class SCF {
588
  $settings = self::get_settings_for_term( $object, $settings_posts );
589
  }
590
  }
591
- $settings = apply_filters( SCF_Config::PREFIX . 'register-fields', $settings, $type, $id, $meta_type );
 
 
 
 
 
 
 
 
 
592
  return $settings;
593
  }
594
 
1
  <?php
2
  /**
3
  * SCF
4
+ * Version : 1.3.2
5
  * Author : inc2734
6
  * Created : September 23, 2014
7
+ * Modified : January 7, 2016
8
  * License : GPLv2 or later
9
  * License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
  */
588
  $settings = self::get_settings_for_term( $object, $settings_posts );
589
  }
590
  }
591
+ $settings = apply_filters(
592
+ SCF_Config::PREFIX . 'register-fields',
593
+ $settings,
594
+ $type,
595
+ $id,
596
+ $meta_type
597
+ );
598
+ if ( !is_array( $settings ) ) {
599
+ $settings = array();
600
+ }
601
  return $settings;
602
  }
603
 
readme.txt CHANGED
@@ -1,10 +1,10 @@
1
  === Smart Custom Fields ===
2
- Contributors: inc2734, toro_unit, mimosafa, hideokamoto
3
  Donate link: http://www.amazon.co.jp/registry/wishlist/39ANKRNSTNW40
4
  Tags: plugin, custom field, custom, field, meta, meta field, repeat, repeatable
5
  Requires at least: 3.9
6
  Tested up to: 4.4
7
- Stable tag: 1.6.5
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -86,6 +86,9 @@ You can send your own language pack to me.
86
 
87
  == Changelog ==
88
 
 
 
 
89
  = 1.6.5 =
90
  * Fixed a bug that multi value in the loop is broken.
91
  * In setting screen, if the field is closed, display the field name.
1
  === Smart Custom Fields ===
2
+ Contributors: inc2734, toro_unit, mimosafa, hideokamoto, hisako-isaka
3
  Donate link: http://www.amazon.co.jp/registry/wishlist/39ANKRNSTNW40
4
  Tags: plugin, custom field, custom, field, meta, meta field, repeat, repeatable
5
  Requires at least: 3.9
6
  Tested up to: 4.4
7
+ Stable tag: 1.6.6
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
86
 
87
  == Changelog ==
88
 
89
+ = 1.6.6 =
90
+ * Fixed a bug that warning is out when the array isn't returned in the smart-cf-register-fields.
91
+
92
  = 1.6.5 =
93
  * Fixed a bug that multi value in the loop is broken.
94
  * In setting screen, if the field is closed, display the field name.
smart-custom-fields.php CHANGED
@@ -3,11 +3,11 @@
3
  * Plugin name: Smart Custom Fields
4
  * Plugin URI: https://github.com/inc2734/smart-custom-fields/
5
  * Description: Smart Custom Fields is a simple plugin that management custom fields.
6
- * Version: 1.6.5
7
  * Author: inc2734
8
  * Author URI: http://2inc.org
9
  * Created: October 9, 2014
10
- * Modified: January 5, 2016
11
  * Text Domain: smart-custom-fields
12
  * Domain Path: /languages
13
  * License: GPLv2 or later
3
  * Plugin name: Smart Custom Fields
4
  * Plugin URI: https://github.com/inc2734/smart-custom-fields/
5
  * Description: Smart Custom Fields is a simple plugin that management custom fields.
6
+ * Version: 1.6.6
7
  * Author: inc2734
8
  * Author URI: http://2inc.org
9
  * Created: October 9, 2014
10
+ * Modified: January 7, 2016
11
  * Text Domain: smart-custom-fields
12
  * Domain Path: /languages
13
  * License: GPLv2 or later