Version Description
- Bugfix: image output in the cft shortcode with the format attribute.
Download this release
Release Info
Developer | Hiroaki Miyashita |
Plugin | Custom Field Template |
Version | 2.3.7 |
Comparing to | |
See all releases |
Code changes from version 2.3.6 to 2.3.7
- custom-field-template.php +6 -3
- readme.txt +5 -2
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.3.
|
9 |
Text Domain: custom-field-template
|
10 |
Domain Path: /
|
11 |
*/
|
@@ -33,7 +33,7 @@ I appreciate your efforts, Joshua.
|
|
33 |
*/
|
34 |
|
35 |
class custom_field_template {
|
36 |
-
var $is_excerpt;
|
37 |
|
38 |
function __construct() {
|
39 |
add_action( 'plugins_loaded', array(&$this, 'custom_field_template_plugins_loaded') );
|
@@ -3425,6 +3425,9 @@ jQuery("#edButtonPreview").trigger("click"); }' . "\n";*/
|
|
3425 |
if ( !isset($options['custom_field_template_before_value']) ) $options['custom_field_template_before_value'] = '<li>';
|
3426 |
if ( !isset($options['custom_field_template_after_value']) ) $options['custom_field_template_after_value'] = '</li>';
|
3427 |
|
|
|
|
|
|
|
3428 |
extract(shortcode_atts(array(
|
3429 |
'post_id' => $post_id,
|
3430 |
'template' => 0,
|
@@ -3442,7 +3445,7 @@ jQuery("#edButtonPreview").trigger("click"); }' . "\n";*/
|
|
3442 |
'value_count' => false,
|
3443 |
'value' => ''
|
3444 |
), $attr));
|
3445 |
-
|
3446 |
$metakey = $key;
|
3447 |
$output = '';
|
3448 |
if ( $metakey ) :
|
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.3.7
|
9 |
Text Domain: custom-field-template
|
10 |
Domain Path: /
|
11 |
*/
|
33 |
*/
|
34 |
|
35 |
class custom_field_template {
|
36 |
+
var $is_excerpt, $format_post_id;
|
37 |
|
38 |
function __construct() {
|
39 |
add_action( 'plugins_loaded', array(&$this, 'custom_field_template_plugins_loaded') );
|
3425 |
if ( !isset($options['custom_field_template_before_value']) ) $options['custom_field_template_before_value'] = '<li>';
|
3426 |
if ( !isset($options['custom_field_template_after_value']) ) $options['custom_field_template_after_value'] = '</li>';
|
3427 |
|
3428 |
+
if ( !empty($attr['post_id']) ) $this->format_post_id = $attr['post_id'];
|
3429 |
+
if ( empty($attr['post_id']) && $this->format_post_id ) $post_id = $this->format_post_id;
|
3430 |
+
|
3431 |
extract(shortcode_atts(array(
|
3432 |
'post_id' => $post_id,
|
3433 |
'template' => 0,
|
3445 |
'value_count' => false,
|
3446 |
'value' => ''
|
3447 |
), $attr));
|
3448 |
+
|
3449 |
$metakey = $key;
|
3450 |
$output = '';
|
3451 |
if ( $metakey ) :
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: Hiroaki Miyashita
|
|
3 |
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.5
|
7 |
-
Stable tag: 2.3.
|
8 |
License: GPLv2 or later
|
9 |
|
10 |
The Custom Field Template plugin extends the functionality of custom fields.
|
@@ -112,6 +112,9 @@ See the default template and modify it.
|
|
112 |
|
113 |
== Changelog ==
|
114 |
|
|
|
|
|
|
|
115 |
= 2.3.6 =
|
116 |
* Code cleaning.
|
117 |
* Bugfix: Category ID and Page Template file name refinement.
|
3 |
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.5.2
|
7 |
+
Stable tag: 2.3.7
|
8 |
License: GPLv2 or later
|
9 |
|
10 |
The Custom Field Template plugin extends the functionality of custom fields.
|
112 |
|
113 |
== Changelog ==
|
114 |
|
115 |
+
= 2.3.7 =
|
116 |
+
* Bugfix: image output in the cft shortcode with the format attribute.
|
117 |
+
|
118 |
= 2.3.6 =
|
119 |
* Code cleaning.
|
120 |
* Bugfix: Category ID and Page Template file name refinement.
|