Custom Field Template - Version 0.6.3

Version Description

Download this release

Release Info

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

Code changes from version 0.6.2 to 0.6.3

Files changed (2) hide show
  1. custom-field-template.php +2 -2
  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.6.2
8
  Author URI: http://wordpressgogo.com/
9
  */
10
 
@@ -828,7 +828,7 @@ jQuery("#edButtonPreview").trigger("click"); }' . "\n";
828
 
829
  if ( $options['custom_field_template_use_wpautop'] && $data[$i]['type'] == 'textarea' )
830
  $meta_value = wpautop($meta_value);
831
- if( isset( $meta_value ) && !empty( $meta_value ) ) {
832
  add_post_meta( $id, $title, $meta_value );
833
 
834
  if ( $_REQUEST['TinyMCE_' . $name . trim($_REQUEST[ $name."_rand" ][$i]) . '_size'] ) {
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.6.3
8
  Author URI: http://wordpressgogo.com/
9
  */
10
 
828
 
829
  if ( $options['custom_field_template_use_wpautop'] && $data[$i]['type'] == 'textarea' )
830
  $meta_value = wpautop($meta_value);
831
+ if( isset( $meta_value ) && strlen( $meta_value ) ) {
832
  add_post_meta( $id, $title, $meta_value );
833
 
834
  if ( $_REQUEST['TinyMCE_' . $name . trim($_REQUEST[ $name."_rand" ][$i]) . '_size'] ) {
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 beta 3
7
- Stable tag: 0.6.2
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 beta 3
7
+ Stable tag: 0.6.3
8
 
9
  This plugin adds the default custom fields on the Write Post/Page.
10