Custom Field Template - Version 0.9.2

Version Description

Download this release

Release Info

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

Code changes from version 0.9.1 to 0.9.2

Files changed (2) hide show
  1. custom-field-template.php +3 -2
  2. readme.txt +1 -1
custom-field-template.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Custom Field Template
4
  Plugin URI: http://wordpressgogo.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: 0.9.1
8
  Author URI: http://wordpressgogo.com/
9
  */
10
 
@@ -370,7 +370,7 @@ mediaButton = true';
370
  $options['shortcode_format'][0] = '<table class="cft">
371
  <tbody>
372
  <tr>
373
- <th>Plan</td><td colspan="3">[Plan]</td>
374
  </tr>
375
  <tr>
376
  <th>Favorite Fruits</th><td>[Favorite Fruits]</td>
@@ -1380,6 +1380,7 @@ jQuery("#edButtonPreview").trigger("click"); }' . "\n";
1380
  else :
1381
  $replace_val = '';
1382
  endif;
 
1383
  $output = preg_replace('/\['.$key.'\]/', $replace_val, $output);
1384
  endforeach;
1385
  endfor;
4
  Plugin URI: http://wordpressgogo.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: 0.9.2
8
  Author URI: http://wordpressgogo.com/
9
  */
10
 
370
  $options['shortcode_format'][0] = '<table class="cft">
371
  <tbody>
372
  <tr>
373
+ <th>Plan</th><td colspan="3">[Plan]</td>
374
  </tr>
375
  <tr>
376
  <th>Favorite Fruits</th><td>[Favorite Fruits]</td>
1380
  else :
1381
  $replace_val = '';
1382
  endif;
1383
+ $key = preg_quote($key, '/');
1384
  $output = preg_replace('/\['.$key.'\]/', $replace_val, $output);
1385
  endforeach;
1386
  endfor;
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://wordpressgogo.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.7
7
- Stable tag: 0.9.1
8
 
9
  This plugin adds the default custom fields on the Write Post/Page.
10
 
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.7
7
+ Stable tag: 0.9.2
8
 
9
  This plugin adds the default custom fields on the Write Post/Page.
10