Version Description
- Bugfix: deployment of templates.
Download this release
Release Info
Developer | Hiroaki Miyashita |
Plugin | Custom Field Template |
Version | 2.4.3 |
Comparing to | |
See all releases |
Code changes from version 2.4.2 to 2.4.3
- custom-field-template.php +12 -12
- readme.txt +4 -1
custom-field-template.php
CHANGED
@@ -5,7 +5,7 @@ Plugin URI: http://wpgogo.com/development/custom-field-template.html
|
|
5 |
Description: This plugin adds the default custom fields on the Write Post/Page.
|
6 |
Author: Hiroaki Miyashita
|
7 |
Author URI: http://wpgogo.com/
|
8 |
-
Version: 2.4.
|
9 |
Text Domain: custom-field-template
|
10 |
Domain Path: /
|
11 |
*/
|
@@ -181,19 +181,19 @@ class custom_field_template {
|
|
181 |
else $title = $options['custom_fields'][$key]['title'];
|
182 |
if ( empty($options['custom_fields'][$key]['custom_post_type']) ) :
|
183 |
if ( empty($options['custom_fields'][$key]['post_type']) ) :
|
184 |
-
add_meta_box('cftdiv'.$i, $title, array(&$this, 'insert_custom_field'), 'post', 'normal', 'core', $key);
|
185 |
-
add_meta_box('cftdiv'.$i, $title, array(&$this, 'insert_custom_field'), 'page', 'normal', 'core', $key);
|
186 |
elseif ( $options['custom_fields'][$key]['post_type']=='post' ) :
|
187 |
-
add_meta_box('cftdiv'.$i, $title, array(&$this, 'insert_custom_field'), 'post', 'normal', 'core', $key);
|
188 |
elseif ( $options['custom_fields'][$key]['post_type']=='page' ) :
|
189 |
-
add_meta_box('cftdiv'.$i, $title, array(&$this, 'insert_custom_field'), 'page', 'normal', 'core', $key);
|
190 |
endif;
|
191 |
else :
|
192 |
$tmp_custom_post_type = explode(',', $options['custom_fields'][$key]['custom_post_type']);
|
193 |
$tmp_custom_post_type = array_filter( $tmp_custom_post_type );
|
194 |
$tmp_custom_post_type = array_unique(array_filter(array_map('trim', $tmp_custom_post_type)));
|
195 |
foreach ( $tmp_custom_post_type as $type ) :
|
196 |
-
add_meta_box('cftdiv'.$i, $title, array(&$this, 'insert_custom_field'), $type, 'normal', 'core', $key);
|
197 |
endforeach;
|
198 |
endif;
|
199 |
$i++;
|
@@ -2680,12 +2680,12 @@ jQuery(this).addClass("closed");
|
|
2680 |
<div class="dbx-c-ontent-wrapper">
|
2681 |
<div class="dbx-content">';
|
2682 |
}
|
2683 |
-
|
2684 |
-
if ( isset($args['args']
|
2685 |
-
$init_id = $args['args'];
|
2686 |
-
$suffix = $args['args'];
|
2687 |
-
$suffix2 = '_'.$args['args'];
|
2688 |
-
$suffix3 = $args['args'];
|
2689 |
else :
|
2690 |
if ( isset($_REQUEST['post']) ) $request_post = $_REQUEST['post'];
|
2691 |
else $request_post = '';
|
5 |
Description: This plugin adds the default custom fields on the Write Post/Page.
|
6 |
Author: Hiroaki Miyashita
|
7 |
Author URI: http://wpgogo.com/
|
8 |
+
Version: 2.4.3
|
9 |
Text Domain: custom-field-template
|
10 |
Domain Path: /
|
11 |
*/
|
181 |
else $title = $options['custom_fields'][$key]['title'];
|
182 |
if ( empty($options['custom_fields'][$key]['custom_post_type']) ) :
|
183 |
if ( empty($options['custom_fields'][$key]['post_type']) ) :
|
184 |
+
add_meta_box('cftdiv'.$i, $title, array(&$this, 'insert_custom_field'), 'post', 'normal', 'core', array('cft_id' => $key));
|
185 |
+
add_meta_box('cftdiv'.$i, $title, array(&$this, 'insert_custom_field'), 'page', 'normal', 'core', array('cft_id' => $key));
|
186 |
elseif ( $options['custom_fields'][$key]['post_type']=='post' ) :
|
187 |
+
add_meta_box('cftdiv'.$i, $title, array(&$this, 'insert_custom_field'), 'post', 'normal', 'core', array('cft_id' => $key));
|
188 |
elseif ( $options['custom_fields'][$key]['post_type']=='page' ) :
|
189 |
+
add_meta_box('cftdiv'.$i, $title, array(&$this, 'insert_custom_field'), 'page', 'normal', 'core', array('cft_id' => $key));
|
190 |
endif;
|
191 |
else :
|
192 |
$tmp_custom_post_type = explode(',', $options['custom_fields'][$key]['custom_post_type']);
|
193 |
$tmp_custom_post_type = array_filter( $tmp_custom_post_type );
|
194 |
$tmp_custom_post_type = array_unique(array_filter(array_map('trim', $tmp_custom_post_type)));
|
195 |
foreach ( $tmp_custom_post_type as $type ) :
|
196 |
+
add_meta_box('cftdiv'.$i, $title, array(&$this, 'insert_custom_field'), $type, 'normal', 'core', array('cft_id' => $key));
|
197 |
endforeach;
|
198 |
endif;
|
199 |
$i++;
|
2680 |
<div class="dbx-c-ontent-wrapper">
|
2681 |
<div class="dbx-content">';
|
2682 |
}
|
2683 |
+
|
2684 |
+
if ( isset($args['args']['cft_id']) ) :
|
2685 |
+
$init_id = $args['args']['cft_id'];
|
2686 |
+
$suffix = $args['args']['cft_id'];
|
2687 |
+
$suffix2 = '_'.$args['args']['cft_id'];
|
2688 |
+
$suffix3 = $args['args']['cft_id'];
|
2689 |
else :
|
2690 |
if ( isset($_REQUEST['post']) ) $request_post = $_REQUEST['post'];
|
2691 |
else $request_post = '';
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: http://wpgogo.com/development/custom-field-template.html
|
|
4 |
Tags: custom field, custom fields, custom, fields, field, template, meta, custom field template, custom post type
|
5 |
Requires at least: 2.1
|
6 |
Tested up to: 4.9.8
|
7 |
-
Stable tag: 2.4.
|
8 |
License: GPLv2 or later
|
9 |
|
10 |
The Custom Field Template plugin extends the functionality of custom fields.
|
@@ -114,6 +114,9 @@ See the default template and modify it.
|
|
114 |
|
115 |
== Changelog ==
|
116 |
|
|
|
|
|
|
|
117 |
= 2.4.2 =
|
118 |
* Support for Gutenberg.
|
119 |
|
4 |
Tags: custom field, custom fields, custom, fields, field, template, meta, custom field template, custom post type
|
5 |
Requires at least: 2.1
|
6 |
Tested up to: 4.9.8
|
7 |
+
Stable tag: 2.4.3
|
8 |
License: GPLv2 or later
|
9 |
|
10 |
The Custom Field Template plugin extends the functionality of custom fields.
|
114 |
|
115 |
== Changelog ==
|
116 |
|
117 |
+
= 2.4.3 =
|
118 |
+
* Bugfix: deployment of templates.
|
119 |
+
|
120 |
= 2.4.2 =
|
121 |
* Support for Gutenberg.
|
122 |
|