Version Description
Download this release
Release Info
Developer | Hiroaki Miyashita |
Plugin | Custom Field Template |
Version | 0.6.2 |
Comparing to | |
See all releases |
Code changes from version 0.6.1 to 0.6.2
- custom-field-template.php +9 -5
- 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.6.
|
8 |
Author URI: http://wordpressgogo.com/
|
9 |
*/
|
10 |
|
@@ -555,10 +555,14 @@ jQuery(this).addClass("closed");
|
|
555 |
if( $tinyMCE == true ) {
|
556 |
$out = '<script type="text/javascript">' . "\n" .
|
557 |
'// <![CDATA[' . "\n" .
|
558 |
-
'if ( typeof tinyMCE != "undefined" )' . "\n"
|
559 |
-
|
560 |
-
|
561 |
-
|
|
|
|
|
|
|
|
|
562 |
}
|
563 |
|
564 |
if ( substr($wp_version, 0, 3) >= '2.5' ) {
|
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.6.2
|
8 |
Author URI: http://wordpressgogo.com/
|
9 |
*/
|
10 |
|
555 |
if( $tinyMCE == true ) {
|
556 |
$out = '<script type="text/javascript">' . "\n" .
|
557 |
'// <![CDATA[' . "\n" .
|
558 |
+
'if ( typeof tinyMCE != "undefined" )' . "\n";
|
559 |
+
if ( $options['custom_field_template_use_wpautop'] ) :
|
560 |
+
$out .= 'jQuery(document).ready(function() {document.getElementById("'. $name . $rand . '").value = document.getElementById("'. $name . $rand . '").value; tinyMCE.execCommand("mceAddControl", false, "'. $name . $rand . '"); tinyMCEID.push("'. $name . $rand . '");});' . "\n";
|
561 |
+
else:
|
562 |
+
$out .= 'jQuery(document).ready(function() {document.getElementById("'. $name . $rand . '").value = switchEditors.wpautop(document.getElementById("'. $name . $rand . '").value); tinyMCE.execCommand("mceAddControl", false, "'. $name . $rand . '"); tinyMCEID.push("'. $name . $rand . '");});' . "\n";
|
563 |
+
endif;
|
564 |
+
$out .= '// ]]>' . "\n" .
|
565 |
+
'</script>';
|
566 |
}
|
567 |
|
568 |
if ( substr($wp_version, 0, 3) >= '2.5' ) {
|
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 beta 3
|
7 |
-
Stable tag: 0.6.
|
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 beta 3
|
7 |
+
Stable tag: 0.6.2
|
8 |
|
9 |
This plugin adds the default custom fields on the Write Post/Page.
|
10 |
|