Version Description
Download this release
Release Info
Developer | Hiroaki Miyashita |
Plugin | Custom Field Template |
Version | 1.3.2 |
Comparing to | |
See all releases |
Code changes from version 1.3.1 to 1.3.2
- custom-field-template.php +5 -4
- 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: 1.3.
|
8 |
Author URI: http://wordpressgogo.com/
|
9 |
*/
|
10 |
|
@@ -1451,12 +1451,13 @@ jQuery(this).addClass("closed");
|
|
1451 |
if( $tinyMCE == true ) {
|
1452 |
$out = '<script type="text/javascript">' . "\n" .
|
1453 |
'// <![CDATA[' . "\n" .
|
1454 |
-
'if ( typeof tinyMCE != "undefined" )' . "\n";
|
1455 |
if ( $options['custom_field_template_use_wpautop'] ) :
|
1456 |
-
$out .= '
|
1457 |
else:
|
1458 |
-
$out .= '
|
1459 |
endif;
|
|
|
1460 |
$out .= '// ]]>' . "\n" . '</script>';
|
1461 |
}
|
1462 |
|
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: 1.3.2
|
8 |
Author URI: http://wordpressgogo.com/
|
9 |
*/
|
10 |
|
1451 |
if( $tinyMCE == true ) {
|
1452 |
$out = '<script type="text/javascript">' . "\n" .
|
1453 |
'// <![CDATA[' . "\n" .
|
1454 |
+
'jQuery(document).ready(function() {if ( typeof tinyMCE != "undefined" )' . "\n";
|
1455 |
if ( $options['custom_field_template_use_wpautop'] ) :
|
1456 |
+
$out .= 'document.getElementById("'. $name . $rand . '").value = document.getElementById("'. $name . $rand . '").value; tinyMCE.execCommand("mceAddControl", false, "'. $name . $rand . '"); tinyMCEID.push("'. $name . $rand . '");' . "\n";
|
1457 |
else:
|
1458 |
+
$out .= 'document.getElementById("'. $name . $rand . '").value = switchEditors.wpautop(document.getElementById("'. $name . $rand . '").value); tinyMCE.execCommand("mceAddControl", false, "'. $name . $rand . '"); tinyMCEID.push("'. $name . $rand . '");' . "\n";
|
1459 |
endif;
|
1460 |
+
$out .= '});' . "\n";
|
1461 |
$out .= '// ]]>' . "\n" . '</script>';
|
1462 |
}
|
1463 |
|
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.8
|
7 |
-
Stable tag: 1.3.
|
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.8
|
7 |
+
Stable tag: 1.3.2
|
8 |
|
9 |
This plugin adds the default custom fields on the Write Post/Page.
|
10 |
|