Custom Field Template - Version 1.5.6

Version Description

  • Bugfix: disable the default custom fields in the page edit screen.
  • Bugfix: compatible with old WordPress versions.
Download this release

Release Info

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

Code changes from version 1.5.5 to 1.5.6

Files changed (2) hide show
  1. custom-field-template.php +3 -2
  2. readme.txt +5 -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.5
8
  Author URI: http://wpgogo.com/
9
  */
10
 
@@ -126,6 +126,7 @@ class custom_field_template {
126
  add_meta_box('cftdiv', __('Custom Field Template', 'custom-field-template'), array(&$this, 'insert_custom_field'), 'page', 'normal', 'core');
127
  if ( function_exists('remove_meta_box') && $options['custom_field_template_disable_default_custom_fields'] ) :
128
  remove_meta_box('postcustom', 'post', 'normal');
 
129
  remove_meta_box('pagecustomdiv', 'page', 'normal');
130
  endif;
131
  }
@@ -1738,7 +1739,7 @@ jQuery(this).addClass("closed");
1738
 
1739
  $post = get_post($value);
1740
  $filename = basename($post->guid);
1741
- $title = esc_attr($post->post_title);
1742
 
1743
  $out .= '<p><label for=""><input type="checkbox" name="'.$name . '_delete[' . $sid . '][' . $cftnum . ']" id="'.$name . '_delete' . $sid . '" value="1" class="delete_file_checkbox" />' . __('Delete', 'custom-field-template') . '</label> <img src="'.$thumb_url.'" width="32" height="32" style="vertical-align:middle;" /> ' . $title . ' </p>';
1744
  $out .= '<input type="hidden" name="'.$name . '[' . $sid . '][' . $cftnum . ']" value="' . $value . '" />';
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.6
8
  Author URI: http://wpgogo.com/
9
  */
10
 
126
  add_meta_box('cftdiv', __('Custom Field Template', 'custom-field-template'), array(&$this, 'insert_custom_field'), 'page', 'normal', 'core');
127
  if ( function_exists('remove_meta_box') && $options['custom_field_template_disable_default_custom_fields'] ) :
128
  remove_meta_box('postcustom', 'post', 'normal');
129
+ remove_meta_box('postcustom', 'page', 'normal');
130
  remove_meta_box('pagecustomdiv', 'page', 'normal');
131
  endif;
132
  }
1739
 
1740
  $post = get_post($value);
1741
  $filename = basename($post->guid);
1742
+ $title = attribute_escape(trim($post->post_title));
1743
 
1744
  $out .= '<p><label for=""><input type="checkbox" name="'.$name . '_delete[' . $sid . '][' . $cftnum . ']" id="'.$name . '_delete' . $sid . '" value="1" class="delete_file_checkbox" />' . __('Delete', 'custom-field-template') . '</label> <img src="'.$thumb_url.'" width="32" height="32" style="vertical-align:middle;" /> ' . $title . ' </p>';
1745
  $out .= '<input type="hidden" name="'.$name . '[' . $sid . '][' . $cftnum . ']" value="' . $value . '" />';
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.5
8
 
9
  This plugin adds the default custom fields on the Write Post/Page.
10
 
@@ -98,6 +98,10 @@ See the default template and modify it.
98
 
99
  == Changelog ==
100
 
 
 
 
 
101
  = 1.5.5 =
102
  * Bugfix: hide the preview button in order to prevent duplicate uploads.
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.6
8
 
9
  This plugin adds the default custom fields on the Write Post/Page.
10
 
98
 
99
  == Changelog ==
100
 
101
+ = 1.5.6 =
102
+ * Bugfix: disable the default custom fields in the page edit screen.
103
+ * Bugfix: compatible with old WordPress versions.
104
+
105
  = 1.5.5 =
106
  * Bugfix: hide the preview button in order to prevent duplicate uploads.
107