Version Description
- Bugfix: JavaScript error.
Download this release
Release Info
Developer | Hiroaki Miyashita |
Plugin | Custom Field Template |
Version | 1.7 |
Comparing to | |
See all releases |
Code changes from version 1.6.9 to 1.7
- custom-field-template.php +3 -3
- readme.txt +3 -0
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.
|
8 |
Author URI: http://wpgogo.com/
|
9 |
*/
|
10 |
|
@@ -1765,13 +1765,13 @@ jQuery(this).addClass("closed");
|
|
1765 |
if( $tinyMCE == true ) {
|
1766 |
$out = '<script type="text/javascript">' . "\n" .
|
1767 |
'// <![CDATA[' . "\n" .
|
1768 |
-
'jQuery(document).ready(function() {if ( typeof tinyMCE != "undefined" )' . "\n";
|
1769 |
if ( $options['custom_field_template_use_wpautop'] ) :
|
1770 |
$out .= 'document.getElementById("'. $name . $rand . '").value = document.getElementById("'. $name . $rand . '").value; tinyMCE.execCommand("mceAddControl", false, "'. $name . $rand . '"); tinyMCEID.push("'. $name . $rand . '");' . "\n";
|
1771 |
else:
|
1772 |
$out .= 'document.getElementById("'. $name . $rand . '").value = switchEditors.wpautop(document.getElementById("'. $name . $rand . '").value); tinyMCE.execCommand("mceAddControl", false, "'. $name . $rand . '"); tinyMCEID.push("'. $name . $rand . '");' . "\n";
|
1773 |
endif;
|
1774 |
-
$out .= '});' . "\n";
|
1775 |
$out .= '// ]]>' . "\n" . '</script>';
|
1776 |
}
|
1777 |
|
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.7
|
8 |
Author URI: http://wpgogo.com/
|
9 |
*/
|
10 |
|
1765 |
if( $tinyMCE == true ) {
|
1766 |
$out = '<script type="text/javascript">' . "\n" .
|
1767 |
'// <![CDATA[' . "\n" .
|
1768 |
+
'jQuery(document).ready(function() {if ( typeof tinyMCE != "undefined" ) {' . "\n";
|
1769 |
if ( $options['custom_field_template_use_wpautop'] ) :
|
1770 |
$out .= 'document.getElementById("'. $name . $rand . '").value = document.getElementById("'. $name . $rand . '").value; tinyMCE.execCommand("mceAddControl", false, "'. $name . $rand . '"); tinyMCEID.push("'. $name . $rand . '");' . "\n";
|
1771 |
else:
|
1772 |
$out .= 'document.getElementById("'. $name . $rand . '").value = switchEditors.wpautop(document.getElementById("'. $name . $rand . '").value); tinyMCE.execCommand("mceAddControl", false, "'. $name . $rand . '"); tinyMCEID.push("'. $name . $rand . '");' . "\n";
|
1773 |
endif;
|
1774 |
+
$out .= '}});' . "\n";
|
1775 |
$out .= '// ]]>' . "\n" . '</script>';
|
1776 |
}
|
1777 |
|
readme.txt
CHANGED
@@ -102,6 +102,9 @@ See the default template and modify it.
|
|
102 |
|
103 |
== Changelog ==
|
104 |
|
|
|
|
|
|
|
105 |
= 1.6.9 =
|
106 |
* Bugfix: template loading.
|
107 |
|
102 |
|
103 |
== Changelog ==
|
104 |
|
105 |
+
= 1.7 =
|
106 |
+
* Bugfix: JavaScript error.
|
107 |
+
|
108 |
= 1.6.9 =
|
109 |
* Bugfix: template loading.
|
110 |
|