Custom Field Template - Version 1.8.1

Version Description

Bugfix: tag save.

Download this release

Release Info

Developer Hiroaki Miyashita
Plugin Icon 128x128 Custom Field Template
Version 1.8.1
Comparing to
See all releases

Code changes from version 1.8 to 1.8.1

Files changed (2) hide show
  1. custom-field-template.php +5 -2
  2. readme.txt +4 -1
custom-field-template.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Custom Field Template
4
  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
- Version: 1.8
8
  Author URI: http://wpgogo.com/
9
  */
10
 
@@ -2709,7 +2709,10 @@ jQuery("#edButtonPreview").trigger("click"); }' . "\n";*/
2709
  if ( is_array($tags) ) $tags_value = array_merge($tags, $tags_value);
2710
  endif;
2711
 
2712
- $tags_input = array_unique($tags_value);
 
 
 
2713
  if ( substr($wp_version, 0, 3) >= '2.8' )
2714
  wp_set_post_terms( $id, $tags_value, $tags_key );
2715
  else if ( substr($wp_version, 0, 3) >= '2.3' )
4
  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
+ Version: 1.8.1
8
  Author URI: http://wpgogo.com/
9
  */
10
 
2709
  if ( is_array($tags) ) $tags_value = array_merge($tags, $tags_value);
2710
  endif;
2711
 
2712
+ if ( is_array($tags_value) )
2713
+ $tags_input = array_unique($tags_value);
2714
+ else
2715
+ $tags_input = $tags_value;
2716
  if ( substr($wp_version, 0, 3) >= '2.8' )
2717
  wp_set_post_terms( $id, $tags_value, $tags_key );
2718
  else if ( substr($wp_version, 0, 3) >= '2.3' )
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://wpgogo.com/development/custom-field-template.html
4
  Tags: custom, fields, field, template, meta, custom field, custom fields, custom field template
5
  Requires at least: 2.1
6
  Tested up to: 3.1
7
- Stable tag: 1.8
8
 
9
  This plugin adds the default custom fields on the Write Post/Page.
10
 
@@ -103,6 +103,9 @@ See the default template and modify it.
103
 
104
  == Changelog ==
105
 
 
 
 
106
  = 1.8 =
107
  * Added the `tagName` attribute for the `insertTag` of the custom taxonomy.
108
  * Bugfix: value count.
4
  Tags: custom, fields, field, template, meta, custom field, custom fields, custom field template
5
  Requires at least: 2.1
6
  Tested up to: 3.1
7
+ Stable tag: 1.8.1
8
 
9
  This plugin adds the default custom fields on the Write Post/Page.
10
 
103
 
104
  == Changelog ==
105
 
106
+ = 1.8.1 =
107
+ Bugfix: tag save.
108
+
109
  = 1.8 =
110
  * Added the `tagName` attribute for the `insertTag` of the custom taxonomy.
111
  * Bugfix: value count.