Custom Field Template - Version 2.1

Version Description

  • Bugfix: category refinement.
Download this release

Release Info

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

Code changes from version 2.0.9 to 2.1

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: 2.0.9
8
  Author URI: http://wpgogo.com/
9
  */
10
 
@@ -2686,7 +2686,7 @@ jQuery("#edButtonPreview").trigger("click"); }' . "\n";*/
2686
  $categories = explode(',', $val['category']);
2687
  $categories = array_filter($categories);
2688
  array_walk( $categories, create_function('&$v', '$v = trim($v);') );
2689
- $query = $wpdb->prepare("SELECT * FROM `".$wpdb->prefix."term_taxonomy` WHERE term_id IN (%s)", $val['category']);
2690
  $result = $wpdb->get_results($query, ARRAY_A);
2691
  $category_taxonomy = array();
2692
  if ( !empty($result) && is_array($result) ) :
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.1
8
  Author URI: http://wpgogo.com/
9
  */
10
 
2686
  $categories = explode(',', $val['category']);
2687
  $categories = array_filter($categories);
2688
  array_walk( $categories, create_function('&$v', '$v = trim($v);') );
2689
+ $query = "SELECT * FROM `".$wpdb->prefix."term_taxonomy` WHERE term_id IN (".addslashes($val['category']).")";
2690
  $result = $wpdb->get_results($query, ARRAY_A);
2691
  $category_taxonomy = array();
2692
  if ( !empty($result) && is_array($result) ) :
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://wpgogo.com/development/custom-field-template.html
4
  Tags: custom field, custom fields, custom, fields, field, template, meta, custom field template, custom post type
5
  Requires at least: 2.1
6
  Tested up to: 3.5
7
- Stable tag: 2.0.9
8
  License: GPLv2 or later
9
 
10
  The Custom Field Template plugin extends the functionality of custom fields.
@@ -111,6 +111,9 @@ See the default template and modify it.
111
 
112
  == Changelog ==
113
 
 
 
 
114
  = 2.0.9 =
115
  * Bugfix: output with the cft format.
116
  * Bugfix: multibyte character key name.
4
  Tags: custom field, custom fields, custom, fields, field, template, meta, custom field template, custom post type
5
  Requires at least: 2.1
6
  Tested up to: 3.5
7
+ Stable tag: 2.1
8
  License: GPLv2 or later
9
 
10
  The Custom Field Template plugin extends the functionality of custom fields.
111
 
112
  == Changelog ==
113
 
114
+ = 2.1 =
115
+ * Bugfix: category refinement.
116
+
117
  = 2.0.9 =
118
  * Bugfix: output with the cft format.
119
  * Bugfix: multibyte character key name.