Version Description
- Fixed a bug that can't be get the correct data when specify a $post_id attribute to SCF::get(). For example SCF::get( 'key', $post_id )
Download this release
Release Info
Developer | inc2734 |
Plugin | Smart Custom Fields |
Version | 1.0.3 |
Comparing to | |
See all releases |
Code changes from version 1.0.2 to 1.0.3
- classes/class.scf.php +4 -4
- readme.txt +5 -2
- smart-custom-fields.php +2 -2
classes/class.scf.php
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* SCF
|
4 |
-
* Version : 1.0.
|
5 |
* Author : Takashi Kitajima
|
6 |
* Created : September 23, 2014
|
7 |
-
* Modified :
|
8 |
* License : GPLv2
|
9 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
*/
|
@@ -55,7 +55,7 @@ class SCF {
|
|
55 |
|
56 |
// 設定画面で未設定のメタデータは投稿が保持していても出力しないようにしないといけないので
|
57 |
// 設定データを取得して出力して良いか判別する
|
58 |
-
$post_type = get_post_type();
|
59 |
$settings = self::get_settings( $post_type );
|
60 |
|
61 |
$return_post_meta = array();
|
@@ -99,7 +99,7 @@ class SCF {
|
|
99 |
|
100 |
// 設定画面で未設定のメタデータは投稿が保持していても出力しないようにしないといけないので
|
101 |
// 設定データを取得して出力して良いか判別する
|
102 |
-
$post_type = get_post_type();
|
103 |
$settings = self::get_settings( $post_type );
|
104 |
|
105 |
foreach ( $settings as $setting ) {
|
1 |
<?php
|
2 |
/**
|
3 |
* SCF
|
4 |
+
* Version : 1.0.2
|
5 |
* Author : Takashi Kitajima
|
6 |
* Created : September 23, 2014
|
7 |
+
* Modified : January 6, 2015
|
8 |
* License : GPLv2
|
9 |
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
*/
|
55 |
|
56 |
// 設定画面で未設定のメタデータは投稿が保持していても出力しないようにしないといけないので
|
57 |
// 設定データを取得して出力して良いか判別する
|
58 |
+
$post_type = get_post_type( $post_id );
|
59 |
$settings = self::get_settings( $post_type );
|
60 |
|
61 |
$return_post_meta = array();
|
99 |
|
100 |
// 設定画面で未設定のメタデータは投稿が保持していても出力しないようにしないといけないので
|
101 |
// 設定データを取得して出力して良いか判別する
|
102 |
+
$post_type = get_post_type( $post_id );
|
103 |
$settings = self::get_settings( $post_type );
|
104 |
|
105 |
foreach ( $settings as $setting ) {
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ 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.0
|
7 |
-
Stable tag: 1.0.
|
8 |
License: GPLv2
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -61,6 +61,9 @@ https://github.com/inc2734/smart-custom-fields/
|
|
61 |
|
62 |
== Changelog ==
|
63 |
|
|
|
|
|
|
|
64 |
= 1.0.2 =
|
65 |
* Add color picker field.
|
66 |
* Add smart-cf-before-save-post action hook.
|
@@ -69,7 +72,7 @@ https://github.com/inc2734/smart-custom-fields/
|
|
69 |
|
70 |
= 1.0.1 =
|
71 |
* Add display condition by post id.
|
72 |
-
*
|
73 |
* Textarea does not filter the_content filter in SCF::get() and SCF::gets().
|
74 |
|
75 |
= 1.0.0 =
|
4 |
Tags: plugin, custom field, custom, field, meta, meta field, repeat, repeatable
|
5 |
Requires at least: 3.9
|
6 |
Tested up to: 4.0
|
7 |
+
Stable tag: 1.0.3
|
8 |
License: GPLv2
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
61 |
|
62 |
== Changelog ==
|
63 |
|
64 |
+
= 1.0.3 =
|
65 |
+
* Fixed a bug that can't be get the correct data when specify a $post_id attribute to SCF::get(). For example SCF::get( 'key', $post_id )
|
66 |
+
|
67 |
= 1.0.2 =
|
68 |
* Add color picker field.
|
69 |
* Add smart-cf-before-save-post action hook.
|
72 |
|
73 |
= 1.0.1 =
|
74 |
* Add display condition by post id.
|
75 |
+
* Fixed bug that is not displayed wysiwyg editor when there are not content editor.
|
76 |
* Textarea does not filter the_content filter in SCF::get() and SCF::gets().
|
77 |
|
78 |
= 1.0.0 =
|
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.0.
|
7 |
* Author: Takashi Kitajima
|
8 |
* Author URI: http://2inc.org
|
9 |
* Created: October 9, 2014
|
10 |
-
* Modified:
|
11 |
* Text Domain: smart-custom-fields
|
12 |
* Domain Path: /languages/
|
13 |
* License: GPLv2
|
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.0.3
|
7 |
* Author: Takashi Kitajima
|
8 |
* Author URI: http://2inc.org
|
9 |
* Created: October 9, 2014
|
10 |
+
* Modified: OJanuary 6, 2015
|
11 |
* Text Domain: smart-custom-fields
|
12 |
* Domain Path: /languages/
|
13 |
* License: GPLv2
|