Custom Field Template - Version 1.6.5

Version Description

  • Bugfix: the judgement of post types.
Download this release

Release Info

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

Code changes from version 1.6.4 to 1.6.5

Files changed (2) hide show
  1. custom-field-template.php +4 -4
  2. readme.txt +4 -1
custom-field-template.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Custom Field Template
4
  Plugin URI: http://wpgogo.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.6.4
8
  Author URI: http://wpgogo.com/
9
  */
10
 
@@ -2337,14 +2337,14 @@ jQuery("#edButtonPreview").trigger("click"); }' . "\n";*/
2337
  // If only shows up on pages or posts if set
2338
  if ( $options['custom_fields'][$i]['post_type'] ) :
2339
  if ( substr($wp_version, 0, 3) < '3.0' ) :
2340
- if ( $options['custom_fields'][$id]['post_type'] == 'post' && (strstr($_SERVER['REQUEST_URI'], 'wp-admin/page-new.php') || strstr($_SERVER['REQUEST_URI'], 'wp-admin/page.php') || strstr($_SERVER['REQUEST_URI'], 'wp-admin/edit-pages.php')) ) :
2341
  continue;
2342
  endif;
2343
- if ( $options['custom_fields'][$id]['post_type'] == 'page' && (strstr($_SERVER['REQUEST_URI'], 'wp-admin/post-new.php') || strstr($_SERVER['REQUEST_URI'], 'wp-admin/post.php') || strstr($_SERVER['REQUEST_URI'], 'wp-admin/edit.php')) ) :
2344
  continue;
2345
  endif;
2346
  else :
2347
- if ( $post->post_type!=$options['custom_fields'][$id]['post_type'] ) :
2348
  continue;
2349
  endif;
2350
  endif;
4
  Plugin URI: http://wpgogo.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.6.5
8
  Author URI: http://wpgogo.com/
9
  */
10
 
2337
  // If only shows up on pages or posts if set
2338
  if ( $options['custom_fields'][$i]['post_type'] ) :
2339
  if ( substr($wp_version, 0, 3) < '3.0' ) :
2340
+ if ( $options['custom_fields'][$i]['post_type'] == 'post' && (strstr($_SERVER['REQUEST_URI'], 'wp-admin/page-new.php') || strstr($_SERVER['REQUEST_URI'], 'wp-admin/page.php') || strstr($_SERVER['REQUEST_URI'], 'wp-admin/edit-pages.php')) ) :
2341
  continue;
2342
  endif;
2343
+ if ( $options['custom_fields'][$i]['post_type'] == 'page' && (strstr($_SERVER['REQUEST_URI'], 'wp-admin/post-new.php') || strstr($_SERVER['REQUEST_URI'], 'wp-admin/post.php') || strstr($_SERVER['REQUEST_URI'], 'wp-admin/edit.php')) ) :
2344
  continue;
2345
  endif;
2346
  else :
2347
+ if ( $post->post_type!=$options['custom_fields'][$i]['post_type'] ) :
2348
  continue;
2349
  endif;
2350
  endif;
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://wpgogo.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: 3.0
7
- Stable tag: 1.6.4
8
 
9
  This plugin adds the default custom fields on the Write Post/Page.
10
 
@@ -101,6 +101,9 @@ See the default template and modify it.
101
 
102
  == Changelog ==
103
 
 
 
 
104
  = 1.6.4 =
105
  * Changed the default ADMIN CSS.
106
  * Textarea resizer.
4
  Tags: custom, fields, field, template, meta, custom field, custom fields, custom field template
5
  Requires at least: 2.1
6
  Tested up to: 3.0
7
+ Stable tag: 1.6.5
8
 
9
  This plugin adds the default custom fields on the Write Post/Page.
10
 
101
 
102
  == Changelog ==
103
 
104
+ = 1.6.5 =
105
+ * Bugfix: the judgement of post types.
106
+
107
  = 1.6.4 =
108
  * Changed the default ADMIN CSS.
109
  * Textarea resizer.