Smart Custom Fields - Version 2.2.2

Version Description

  • Fix #37 #38
Download this release

Release Info

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

Code changes from version 2.2.1 to 2.2.2

Files changed (2) hide show
  1. readme.txt +6 -3
  2. smart-custom-fields.php +14 -6
readme.txt CHANGED
@@ -1,10 +1,10 @@
1
  === Smart Custom Fields ===
2
- Contributors: inc2734, toro_unit, mimosafa, hideokamoto, hisako-isaka, kurudrive
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.5.3
7
- Stable tag: 2.2.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -84,7 +84,7 @@ This method can get all term meta data.
84
 
85
  This method can get any custom options page meta data.
86
 
87
- `SCF::get_option_meta( $menu_slug 'field-name' )`
88
 
89
  This method can get custom options page meta data of any group.
90
 
@@ -125,6 +125,9 @@ You can send your own language pack to me.
125
 
126
  == Changelog ==
127
 
 
 
 
128
  = 2.2.1 =
129
  * Fix bug boolean field in repeatable group #39
130
  * Fix bug datepicker and colorpicker in repeatable group #41
1
  === Smart Custom Fields ===
2
+ Contributors: inc2734, toro_unit, mimosafa, hideokamoto, hisako-isaka, kurudrive, hanamura
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.5.3
7
+ Stable tag: 2.2.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
84
 
85
  This method can get any custom options page meta data.
86
 
87
+ `SCF::get_option_meta( $menu_slug, 'field-name' )`
88
 
89
  This method can get custom options page meta data of any group.
90
 
125
 
126
  == Changelog ==
127
 
128
+ = 2.2.2 =
129
+ * Fix #37 #38
130
+
131
  = 2.2.1 =
132
  * Fix bug boolean field in repeatable group #39
133
  * Fix bug datepicker and colorpicker in repeatable group #41
smart-custom-fields.php CHANGED
@@ -3,7 +3,7 @@
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: 2.2.1
7
  * Author: inc2734
8
  * Author URI: http://2inc.org
9
  * Created: October 9, 2014
@@ -54,12 +54,20 @@ class Smart_Custom_Fields {
54
  new $classname();
55
  }
56
  }
57
- do_action( SCF_Config::PREFIX . 'fields-loaded' );
58
 
59
- add_action( 'init' , array( $this, 'register_post_type' ) );
60
- add_action( 'init' , array( $this, 'ajax_request' ) );
61
- add_action( 'admin_menu' , array( $this, 'admin_menu' ) );
62
- add_action( 'current_screen', array( $this, 'current_screen' ) );
 
 
 
 
 
 
 
 
 
63
  }
64
 
65
  /**
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: 2.2.2
7
  * Author: inc2734
8
  * Author URI: http://2inc.org
9
  * Created: October 9, 2014
54
  new $classname();
55
  }
56
  }
 
57
 
58
+ add_action( 'after_setup_theme', array( $this, 'after_setup_theme' ) );
59
+ add_action( 'init' , array( $this, 'register_post_type' ) );
60
+ add_action( 'init' , array( $this, 'ajax_request' ) );
61
+ add_action( 'admin_menu' , array( $this, 'admin_menu' ) );
62
+ add_action( 'current_screen' , array( $this, 'current_screen' ) );
63
+ }
64
+
65
+ /**
66
+ * The action hook provides in after_setup_themeto be able to add fields
67
+ * from themes not only plugins.
68
+ */
69
+ public function after_setup_theme() {
70
+ do_action( SCF_Config::PREFIX . 'fields-loaded' );
71
  }
72
 
73
  /**