Custom Field Template - Version 2.0.4

Version Description

  • Bugfix: JavaScript error with jQuery validation.
Download this release

Release Info

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

Code changes from version 2.0.3 to 2.0.4

Files changed (2) hide show
  1. custom-field-template.php +3 -1
  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: 2.0.3
8
  Author URI: http://wpgogo.com/
9
  */
10
 
@@ -352,6 +352,7 @@ class custom_field_template {
352
  echo '<link rel="stylesheet" type="text/css" href="' . wp_guess_url() . '/' . PLUGINDIR . '/' . $plugin_dir . '/js/datePicker.css" />'."\n";
353
 
354
  if ( !empty($options['custom_field_template_use_validation']) ) :
 
355
  ?>
356
  <script type="text/javascript">
357
  // <![CDATA[
@@ -367,6 +368,7 @@ class custom_field_template {
367
  </style>
368
 
369
  <?php
 
370
  endif;
371
 
372
  if ( substr($wp_version, 0, 3) >= '2.7' && is_user_logged_in() && ( strstr($_SERVER['REQUEST_URI'], 'wp-admin/edit.php') || strstr($_SERVER['REQUEST_URI'], 'wp-admin/edit-pages.php') ) && !strstr($_SERVER['REQUEST_URI'], 'page=') ) {
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: 2.0.4
8
  Author URI: http://wpgogo.com/
9
  */
10
 
352
  echo '<link rel="stylesheet" type="text/css" href="' . wp_guess_url() . '/' . PLUGINDIR . '/' . $plugin_dir . '/js/datePicker.css" />'."\n";
353
 
354
  if ( !empty($options['custom_field_template_use_validation']) ) :
355
+ if( strstr($_SERVER['REQUEST_URI'], 'wp-admin/post-new.php') || strstr($_SERVER['REQUEST_URI'], 'wp-admin/post.php') || strstr($_SERVER['REQUEST_URI'], 'wp-admin/page-new.php') || strstr($_SERVER['REQUEST_URI'], 'wp-admin/page.php') || strstr($_SERVER['REQUEST_URI'], 'wp-admin/edit.php') || (is_object($post) && $post->post_type=='page') ) :
356
  ?>
357
  <script type="text/javascript">
358
  // <![CDATA[
368
  </style>
369
 
370
  <?php
371
+ endif;
372
  endif;
373
 
374
  if ( substr($wp_version, 0, 3) >= '2.7' && is_user_logged_in() && ( strstr($_SERVER['REQUEST_URI'], 'wp-admin/edit.php') || strstr($_SERVER['REQUEST_URI'], 'wp-admin/edit-pages.php') ) && !strstr($_SERVER['REQUEST_URI'], 'page=') ) {
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.4
7
- Stable tag: 2.0.3
8
 
9
  This plugin extends the functionality of custom fields.
10
 
@@ -108,6 +108,9 @@ See the default template and modify it.
108
 
109
  == Changelog ==
110
 
 
 
 
111
  = 2.0.3 =
112
  * Bugfix: mediaPicker attribute with a break type.
113
  * Bugfix: disappearance of the main editor.
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.4
7
+ Stable tag: 2.0.4
8
 
9
  This plugin extends the functionality of custom fields.
10
 
108
 
109
  == Changelog ==
110
 
111
+ = 2.0.4 =
112
+ * Bugfix: JavaScript error with jQuery validation.
113
+
114
  = 2.0.3 =
115
  * Bugfix: mediaPicker attribute with a break type.
116
  * Bugfix: disappearance of the main editor.