Custom Field Template - Version 1.5.5

Version Description

  • Bugfix: hide the preview button in order to prevent duplicate uploads.
Download this release

Release Info

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

Code changes from version 1.5.4 to 1.5.5

Files changed (2) hide show
  1. custom-field-template.php +2 -2
  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.5.4
8
  Author URI: http://wpgogo.com/
9
  */
10
 
@@ -1731,7 +1731,7 @@ jQuery(this).addClass("closed");
1731
 
1732
  if ( !empty($label) && !$options['custom_field_template_replace_keys_by_labels'] )
1733
  $out .= '<p class="label">' . stripcslashes($label) . '</p>';
1734
- $out .= trim($before).'<input id="' . $name . $sid . '_' . $cftnum . '" name="' . $name . '['.$sid.'][]" type="file" size="' . $size . '"' . $class . $style . ' onchange="if (jQuery(this).val()) { jQuery(\'#cft_save_button\').attr(\'disabled\', true); } else { jQuery(\'#cft_save_button\').attr(\'disabled\', false); }" />'.trim($after);
1735
 
1736
  if ( ( $value = intval($value) ) && $thumb_url = get_attachment_icon_src( $value ) ) :
1737
  $thumb_url = $thumb_url[0];
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.5.5
8
  Author URI: http://wpgogo.com/
9
  */
10
 
1731
 
1732
  if ( !empty($label) && !$options['custom_field_template_replace_keys_by_labels'] )
1733
  $out .= '<p class="label">' . stripcslashes($label) . '</p>';
1734
+ $out .= trim($before).'<input id="' . $name . $sid . '_' . $cftnum . '" name="' . $name . '['.$sid.'][]" type="file" size="' . $size . '"' . $class . $style . ' onchange="if (jQuery(this).val()) { jQuery(\'#cft_save_button\').attr(\'disabled\', true); jQuery(\'#post-preview\').hide(); } else { jQuery(\'#cft_save_button\').attr(\'disabled\', false); jQuery(\'#post-preview\').show(); }" />'.trim($after);
1735
 
1736
  if ( ( $value = intval($value) ) && $thumb_url = get_attachment_icon_src( $value ) ) :
1737
  $thumb_url = $thumb_url[0];
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: 2.9.1
7
- Stable tag: 1.5.4
8
 
9
  This plugin adds the default custom fields on the Write Post/Page.
10
 
@@ -98,6 +98,9 @@ See the default template and modify it.
98
 
99
  == Changelog ==
100
 
 
 
 
101
  = 1.5.4 =
102
  * Bugfix: custom field ids.
103
 
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.9.1
7
+ Stable tag: 1.5.5
8
 
9
  This plugin adds the default custom fields on the Write Post/Page.
10
 
98
 
99
  == Changelog ==
100
 
101
+ = 1.5.5 =
102
+ * Bugfix: hide the preview button in order to prevent duplicate uploads.
103
+
104
  = 1.5.4 =
105
  * Bugfix: custom field ids.
106