Custom Field Template - Version 1.3.5

Version Description

Download this release

Release Info

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

Code changes from version 1.3.4 to 1.3.5

Files changed (2) hide show
  1. custom-field-template.php +4 -4
  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: 1.3.4
8
  Author URI: http://wordpressgogo.com/
9
  */
10
 
@@ -472,8 +472,8 @@ mediaButton = true';
472
 
473
  function custom_field_template_get_the_excerpt($excerpt) {
474
  $options = $this->get_custom_field_template_data();
475
-
476
- $this->is_excerpt = true;
477
  if ( $options['custom_field_template_excerpt_shortcode'] ) return do_shortcode($excerpt);
478
  else return $excerpt;
479
  }
@@ -484,7 +484,7 @@ mediaButton = true';
484
 
485
  if ( $this->is_excerpt ) :
486
  $this->is_excerpt = false;
487
-
488
  return $post->post_excerpt ? $post->post_excerpt : strip_shortcodes($content);
489
  endif;
490
 
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: 1.3.5
8
  Author URI: http://wordpressgogo.com/
9
  */
10
 
472
 
473
  function custom_field_template_get_the_excerpt($excerpt) {
474
  $options = $this->get_custom_field_template_data();
475
+
476
+ if ( empty($excerpt) ) $this->is_excerpt = true;
477
  if ( $options['custom_field_template_excerpt_shortcode'] ) return do_shortcode($excerpt);
478
  else return $excerpt;
479
  }
484
 
485
  if ( $this->is_excerpt ) :
486
  $this->is_excerpt = false;
487
+
488
  return $post->post_excerpt ? $post->post_excerpt : strip_shortcodes($content);
489
  endif;
490
 
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.8.1
7
- Stable tag: 1.3.4
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.8.1
7
+ Stable tag: 1.3.5
8
 
9
  This plugin adds the default custom fields on the Write Post/Page.
10