Custom Field Template - Version 1.2.3

Version Description

Download this release

Release Info

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

Code changes from version 1.2.2 to 1.2.3

Files changed (2) hide show
  1. custom-field-template.php +3 -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: 1.2.2
8
  Author URI: http://wordpressgogo.com/
9
  */
10
 
@@ -463,10 +463,10 @@ mediaButton = true';
463
  function custom_field_template_the_content($content) {
464
  global $wp_query, $post;
465
  $options = $this->get_custom_field_template_data();
466
-
467
  if ( $this->is_excerpt ) :
468
  $this->is_excerpt = false;
469
- return $content;
470
  endif;
471
 
472
  if ( count($options['hook']) > 0 ) :
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.2.3
8
  Author URI: http://wordpressgogo.com/
9
  */
10
 
463
  function custom_field_template_the_content($content) {
464
  global $wp_query, $post;
465
  $options = $this->get_custom_field_template_data();
466
+
467
  if ( $this->is_excerpt ) :
468
  $this->is_excerpt = false;
469
+ if ( empty($post->post_excerpt) ) return $post->post_content;
470
  endif;
471
 
472
  if ( count($options['hook']) > 0 ) :
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.1
7
- Stable tag: 1.2.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.1
7
+ Stable tag: 1.2.3
8
 
9
  This plugin adds the default custom fields on the Write Post/Page.
10