Custom Field Template - Version 2.0.7

Version Description

  • Bugfix: media insert.
Download this release

Release Info

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

Code changes from version 2.0.6 to 2.0.7

Files changed (2) hide show
  1. custom-field-template.php +2 -1
  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.6
8
  Author URI: http://wpgogo.com/
9
  */
10
 
@@ -692,6 +692,7 @@ class custom_field_template {
692
  }
693
 
694
  function media_send_to_custom_field($html) {
 
695
  $out = '<script type="text/javascript">' . "\n" .
696
  ' /* <![CDATA[ */' . "\n" .
697
  ' var win = window.dialogArguments || opener || parent || top;' . "\n" .
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.7
8
  Author URI: http://wpgogo.com/
9
  */
10
 
692
  }
693
 
694
  function media_send_to_custom_field($html) {
695
+ if ( strstr($_SERVER['REQUEST_URI'], 'wp-admin/admin-ajax.php') ) return $html;
696
  $out = '<script type="text/javascript">' . "\n" .
697
  ' /* <![CDATA[ */' . "\n" .
698
  ' var win = window.dialogArguments || opener || parent || top;' . "\n" .
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.6
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.6 =
115
  * Bugfix: inappropriate output with the cftsearch shortcode.
116
 
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.7
8
  License: GPLv2 or later
9
 
10
  The Custom Field Template plugin extends the functionality of custom fields.
111
 
112
  == Changelog ==
113
 
114
+ = 2.0.7 =
115
+ * Bugfix: media insert.
116
+
117
  = 2.0.6 =
118
  * Bugfix: inappropriate output with the cftsearch shortcode.
119