Version Description
Download this release
Release Info
Developer | Hiroaki Miyashita |
Plugin | Custom Field Template |
Version | 1.0.1 |
Comparing to | |
See all releases |
Code changes from version 1.0 to 1.0.1
- custom-field-template.php +7 -7
- 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.0
|
8 |
Author URI: http://wordpressgogo.com/
|
9 |
*/
|
10 |
|
@@ -1408,16 +1408,16 @@ jQuery("#edButtonPreview").trigger("click"); }' . "\n";
|
|
1408 |
$name = $this->sanitize_name( $title );
|
1409 |
$title = $wpdb->escape(stripcslashes(trim($title)));
|
1410 |
|
1411 |
-
$
|
1412 |
|
1413 |
-
if ( $options['custom_field_template_use_wpautop'] && $data[$i]['type'] == 'textarea' && !empty($
|
1414 |
-
$
|
1415 |
-
if( isset( $
|
1416 |
if ( is_numeric($data[$i]['editCode']) ) :
|
1417 |
eval(stripcslashes($options['php'][$data[$i]['editCode']]));
|
1418 |
endif;
|
1419 |
-
add_post_meta( $id, $title, $
|
1420 |
-
if ( $data[$i]['insertTag'] == true ) $tags_input[] = $
|
1421 |
|
1422 |
if ( $_REQUEST['TinyMCE_' . $name . trim($_REQUEST[ $name."_rand" ][$i]) . '_size'] ) {
|
1423 |
preg_match('/cw=[0-9]+&ch=([0-9]+)/', $_REQUEST['TinyMCE_' . $name . trim($_REQUEST[ $name."_rand" ][$i]) . '_size'], $matched);
|
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.0.1
|
8 |
Author URI: http://wordpressgogo.com/
|
9 |
*/
|
10 |
|
1408 |
$name = $this->sanitize_name( $title );
|
1409 |
$title = $wpdb->escape(stripcslashes(trim($title)));
|
1410 |
|
1411 |
+
$value = stripcslashes(trim($_REQUEST[ "$name" ][$i]));
|
1412 |
|
1413 |
+
if ( $options['custom_field_template_use_wpautop'] && $data[$i]['type'] == 'textarea' && !empty($value) )
|
1414 |
+
$value = wpautop($value);
|
1415 |
+
if( isset( $value ) && strlen( $value ) ) {
|
1416 |
if ( is_numeric($data[$i]['editCode']) ) :
|
1417 |
eval(stripcslashes($options['php'][$data[$i]['editCode']]));
|
1418 |
endif;
|
1419 |
+
add_post_meta( $id, $title, $value );
|
1420 |
+
if ( $data[$i]['insertTag'] == true ) $tags_input[] = $value;
|
1421 |
|
1422 |
if ( $_REQUEST['TinyMCE_' . $name . trim($_REQUEST[ $name."_rand" ][$i]) . '_size'] ) {
|
1423 |
preg_match('/cw=[0-9]+&ch=([0-9]+)/', $_REQUEST['TinyMCE_' . $name . trim($_REQUEST[ $name."_rand" ][$i]) . '_size'], $matched);
|
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: 1.0
|
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: 1.0.1
|
8 |
|
9 |
This plugin adds the default custom fields on the Write Post/Page.
|
10 |
|