Custom Field Template - Version 0.9.1

Version Description

Download this release

Release Info

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

Code changes from version 0.9 to 0.9.1

Files changed (2) hide show
  1. custom-field-template.php +4 -3
  2. readme.txt +1 -1
custom-field-template.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Custom Field Template
4
  Plugin URI: http://wordpressgogo.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: 0.9
8
  Author URI: http://wordpressgogo.com/
9
  */
10
 
@@ -1188,7 +1188,7 @@ jQuery("#edButtonPreview").trigger("click"); }' . "\n";
1188
  }
1189
 
1190
  function edit_meta_value( $id ) {
1191
- global $wpdb;
1192
  $options = $this->get_custom_field_template_data();
1193
 
1194
  if( !isset( $id ) )
@@ -1244,7 +1244,8 @@ jQuery("#edButtonPreview").trigger("click"); }' . "\n";
1244
  if ( is_array($tags) ) $tags_input = array_merge($tags, $tags_input);
1245
  endif;
1246
  $tags_input = array_unique($tags_input);
1247
- wp_set_post_tags( $id, $tags_input );
 
1248
  endif;
1249
 
1250
  $options['posts'][$id] = $_REQUEST['custom-field-template-id'];
4
  Plugin URI: http://wordpressgogo.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: 0.9.1
8
  Author URI: http://wordpressgogo.com/
9
  */
10
 
1188
  }
1189
 
1190
  function edit_meta_value( $id ) {
1191
+ global $wpdb, $wp_version;
1192
  $options = $this->get_custom_field_template_data();
1193
 
1194
  if( !isset( $id ) )
1244
  if ( is_array($tags) ) $tags_input = array_merge($tags, $tags_input);
1245
  endif;
1246
  $tags_input = array_unique($tags_input);
1247
+ if ( substr($wp_version, 0, 3) >= '2.3' )
1248
+ wp_set_post_tags( $id, $tags_input );
1249
  endif;
1250
 
1251
  $options['posts'][$id] = $_REQUEST['custom-field-template-id'];
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://wordpressgogo.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: 2.7
7
- Stable tag: 0.9
8
 
9
  This plugin adds the default custom fields on the Write Post/Page.
10
 
4
  Tags: custom, fields, field, template, meta, custom field, custom fields, custom field template
5
  Requires at least: 2.1
6
  Tested up to: 2.7
7
+ Stable tag: 0.9.1
8
 
9
  This plugin adds the default custom fields on the Write Post/Page.
10