Custom Field Template - Version 1.5.2

Version Description

  • Bugfix: backslashes and cftsearch.
Download this release

Release Info

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

Code changes from version 1.5.1 to 1.5.2

Files changed (2) hide show
  1. custom-field-template.php +4 -3
  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.1
8
  Author URI: http://wpgogo.com/
9
  */
10
 
@@ -581,6 +581,7 @@ type = file';
581
  endif;
582
 
583
  for ( $i=0; $i<count($options['hook']); $i++ ) :
 
584
  if ( is_feed() && !$options['hook'][$i]['feed'] ) break;
585
  if ( $options['hook'][$i]['category'] ) :
586
  if ( is_category() || is_single() || is_feed() ) :
@@ -642,7 +643,7 @@ type = file';
642
  endfor;
643
  endif;
644
 
645
- return stripslashes($content);
646
  }
647
 
648
  function custom_field_template_admin() {
@@ -3032,7 +3033,7 @@ jQuery("#edButtonPreview").trigger("click"); }' . "\n";*/
3032
  foreach( $val2 as $val3 ) :
3033
  if ( $val3 ) :
3034
  if ( $ch == 0 ) $where .= ' AND (';
3035
- else $where .= ' OR ';
3036
  switch( $replace[$key][$key2]['operator'] ) :
3037
  case '<=' :
3038
  case '>=' :
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.2
8
  Author URI: http://wpgogo.com/
9
  */
10
 
581
  endif;
582
 
583
  for ( $i=0; $i<count($options['hook']); $i++ ) :
584
+ $options['hook'][$i]['content'] = stripslashes($options['hook'][$i]['content']);
585
  if ( is_feed() && !$options['hook'][$i]['feed'] ) break;
586
  if ( $options['hook'][$i]['category'] ) :
587
  if ( is_category() || is_single() || is_feed() ) :
643
  endfor;
644
  endif;
645
 
646
+ return $content;
647
  }
648
 
649
  function custom_field_template_admin() {
3033
  foreach( $val2 as $val3 ) :
3034
  if ( $val3 ) :
3035
  if ( $ch == 0 ) $where .= ' AND (';
3036
+ else $where .= ' AND ';
3037
  switch( $replace[$key][$key2]['operator'] ) :
3038
  case '<=' :
3039
  case '>=' :
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
7
- Stable tag: 1.5.1
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.1 =
102
  * Bugfix: backslashes are not saved.
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
7
+ Stable tag: 1.5.2
8
 
9
  This plugin adds the default custom fields on the Write Post/Page.
10
 
98
 
99
  == Changelog ==
100
 
101
+ = 1.5.2 =
102
+ * Bugfix: backslashes and cftsearch.
103
+
104
  = 1.5.1 =
105
  * Bugfix: backslashes are not saved.
106