Custom Field Template - Version 1.2.2

Version Description

Download this release

Release Info

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

Code changes from version 1.2.1 to 1.2.2

Files changed (2) hide show
  1. custom-field-template.php +5 -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.2.1
8
  Author URI: http://wordpressgogo.com/
9
  */
10
 
@@ -455,17 +455,18 @@ mediaButton = true';
455
  }
456
 
457
 
458
- function custom_field_template_get_the_excerpt() {
459
  $this->is_excerpt = true;
 
460
  }
461
 
462
  function custom_field_template_the_content($content) {
463
  global $wp_query, $post;
464
  $options = $this->get_custom_field_template_data();
465
-
466
  if ( $this->is_excerpt ) :
467
  $this->is_excerpt = false;
468
- return;
469
  endif;
470
 
471
  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.2
8
  Author URI: http://wordpressgogo.com/
9
  */
10
 
455
  }
456
 
457
 
458
+ function custom_field_template_get_the_excerpt($excerpt) {
459
  $this->is_excerpt = true;
460
+ return $excerpt;
461
  }
462
 
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 ) :
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.1
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.2
8
 
9
  This plugin adds the default custom fields on the Write Post/Page.
10