Version Description
- Bugfix: error occurs in some circumstances.
Download this release
Release Info
Developer | Hiroaki Miyashita |
Plugin | Custom Field Template |
Version | 1.9.6 |
Comparing to | |
See all releases |
Code changes from version 1.9.5 to 1.9.6
- custom-field-template.php +5 -5
- 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: 1.9.
|
8 |
Author URI: http://wpgogo.com/
|
9 |
*/
|
10 |
|
@@ -148,8 +148,9 @@ class custom_field_template {
|
|
148 |
add_action( 'edit_form_advanced', array(&$this, 'insert_custom_field'), 1 );
|
149 |
add_action( 'edit_page_form', array(&$this, 'insert_custom_field'), 1 );
|
150 |
} else {
|
151 |
-
if ( substr($wp_version, 0, 3) >= '3.3' )
|
152 |
require_once(ABSPATH . 'wp-admin/includes/screen.php');
|
|
|
153 |
require_once(ABSPATH . 'wp-admin/includes/template.php');
|
154 |
add_meta_box('cftdiv', __('Custom Field Template', 'custom-field-template'), array(&$this, 'insert_custom_field'), 'post', 'normal', 'core');
|
155 |
add_meta_box('cftdiv', __('Custom Field Template', 'custom-field-template'), array(&$this, 'insert_custom_field'), 'page', 'normal', 'core');
|
@@ -2105,9 +2106,8 @@ jQuery(this).addClass("closed");
|
|
2105 |
|
2106 |
|
2107 |
function load_custom_field( $id = 0 ) {
|
2108 |
-
global $
|
2109 |
-
|
2110 |
-
$level = $userdata->user_level;
|
2111 |
|
2112 |
$options = $this->get_custom_field_template_data();
|
2113 |
|
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.9.6
|
8 |
Author URI: http://wpgogo.com/
|
9 |
*/
|
10 |
|
148 |
add_action( 'edit_form_advanced', array(&$this, 'insert_custom_field'), 1 );
|
149 |
add_action( 'edit_page_form', array(&$this, 'insert_custom_field'), 1 );
|
150 |
} else {
|
151 |
+
if ( substr($wp_version, 0, 3) >= '3.3' && file_exists(ABSPATH . 'wp-admin/includes/screen.php') ) :
|
152 |
require_once(ABSPATH . 'wp-admin/includes/screen.php');
|
153 |
+
endif;
|
154 |
require_once(ABSPATH . 'wp-admin/includes/template.php');
|
155 |
add_meta_box('cftdiv', __('Custom Field Template', 'custom-field-template'), array(&$this, 'insert_custom_field'), 'post', 'normal', 'core');
|
156 |
add_meta_box('cftdiv', __('Custom Field Template', 'custom-field-template'), array(&$this, 'insert_custom_field'), 'page', 'normal', 'core');
|
2106 |
|
2107 |
|
2108 |
function load_custom_field( $id = 0 ) {
|
2109 |
+
global $current_user, $post, $wp_version;
|
2110 |
+
$level = $current_user->user_level;
|
|
|
2111 |
|
2112 |
$options = $this->get_custom_field_template_data();
|
2113 |
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: http://wpgogo.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: 3.3
|
7 |
-
Stable tag: 1.9.
|
8 |
|
9 |
This plugin adds the default custom fields on the Write Post/Page.
|
10 |
|
@@ -105,6 +105,9 @@ See the default template and modify it.
|
|
105 |
|
106 |
== Changelog ==
|
107 |
|
|
|
|
|
|
|
108 |
= 1.9.5 =
|
109 |
* tinyMCE and quicktags in WordPress 3.3.
|
110 |
* Upgrade of jQuery Validation Plugin.
|
4 |
Tags: custom, fields, field, template, meta, custom field, custom fields, custom field template
|
5 |
Requires at least: 2.1
|
6 |
Tested up to: 3.3
|
7 |
+
Stable tag: 1.9.6
|
8 |
|
9 |
This plugin adds the default custom fields on the Write Post/Page.
|
10 |
|
105 |
|
106 |
== Changelog ==
|
107 |
|
108 |
+
= 1.9.6 =
|
109 |
+
* Bugfix: error occurs in some circumstances.
|
110 |
+
|
111 |
= 1.9.5 =
|
112 |
* tinyMCE and quicktags in WordPress 3.3.
|
113 |
* Upgrade of jQuery Validation Plugin.
|