Custom Field Template - Version 2.4.2

Version Description

  • Support for Gutenberg.
Download this release

Release Info

Developer Hiroaki Miyashita
Plugin Icon 128x128 Custom Field Template
Version 2.4.2
Comparing to
See all releases

Code changes from version 2.4.1 to 2.4.2

Files changed (2) hide show
  1. custom-field-template.php +9 -4
  2. readme.txt +5 -2
custom-field-template.php CHANGED
@@ -5,7 +5,7 @@ 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
  Author URI: http://wpgogo.com/
8
- Version: 2.4.1
9
  Text Domain: custom-field-template
10
  Domain Path: /
11
  */
@@ -39,10 +39,11 @@ class custom_field_template {
39
  function __construct() {
40
  add_action( 'plugins_loaded', array(&$this, 'custom_field_template_plugins_loaded') );
41
  add_action( 'init', array(&$this, 'custom_field_template_init'), 100 );
 
42
  add_action( 'admin_menu', array(&$this, 'custom_field_template_admin_menu') );
43
  add_action( 'admin_print_scripts', array(&$this, 'custom_field_template_admin_scripts') );
44
  add_action( 'admin_head', array(&$this, 'custom_field_template_admin_head'), 100 );
45
- add_action( 'dbx_post_sidebar', array(&$this, 'custom_field_template_dbx_post_sidebar') );
46
  add_action( 'add_meta_boxes', array(&$this, 'custom_field_template_add_meta_boxes') );
47
 
48
  //add_action( 'edit_post', array(&$this, 'edit_meta_value'), 100 );
@@ -159,6 +160,10 @@ class custom_field_template {
159
  endif;
160
  }
161
 
 
 
 
 
162
  function custom_field_template_add_meta_boxes() {
163
  $options = $this->get_custom_field_template_data();
164
 
@@ -476,7 +481,7 @@ class custom_field_template {
476
  }
477
  }
478
 
479
- function custom_field_template_dbx_post_sidebar() {
480
  global $wp_version;
481
  $options = $this->get_custom_field_template_data();
482
 
@@ -2676,7 +2681,7 @@ jQuery(this).addClass("closed");
2676
  <div class="dbx-content">';
2677
  }
2678
 
2679
- if ( isset($args['args']) ) :
2680
  $init_id = $args['args'];
2681
  $suffix = $args['args'];
2682
  $suffix2 = '_'.$args['args'];
5
  Description: This plugin adds the default custom fields on the Write Post/Page.
6
  Author: Hiroaki Miyashita
7
  Author URI: http://wpgogo.com/
8
+ Version: 2.4.2
9
  Text Domain: custom-field-template
10
  Domain Path: /
11
  */
39
  function __construct() {
40
  add_action( 'plugins_loaded', array(&$this, 'custom_field_template_plugins_loaded') );
41
  add_action( 'init', array(&$this, 'custom_field_template_init'), 100 );
42
+ add_action( 'admin_init', array(&$this, 'custom_field_template_admin_init') );
43
  add_action( 'admin_menu', array(&$this, 'custom_field_template_admin_menu') );
44
  add_action( 'admin_print_scripts', array(&$this, 'custom_field_template_admin_scripts') );
45
  add_action( 'admin_head', array(&$this, 'custom_field_template_admin_head'), 100 );
46
+ add_action( 'edit_form_advanced', array(&$this, 'custom_field_template_edit_form_advanced') );
47
  add_action( 'add_meta_boxes', array(&$this, 'custom_field_template_add_meta_boxes') );
48
 
49
  //add_action( 'edit_post', array(&$this, 'edit_meta_value'), 100 );
160
  endif;
161
  }
162
 
163
+ function custom_field_template_admin_init() {
164
+ add_thickbox();
165
+ }
166
+
167
  function custom_field_template_add_meta_boxes() {
168
  $options = $this->get_custom_field_template_data();
169
 
481
  }
482
  }
483
 
484
+ function custom_field_template_edit_form_advanced() {
485
  global $wp_version;
486
  $options = $this->get_custom_field_template_data();
487
 
2681
  <div class="dbx-content">';
2682
  }
2683
 
2684
+ if ( isset($args['args']) && is_string($args['args']) ) :
2685
  $init_id = $args['args'];
2686
  $suffix = $args['args'];
2687
  $suffix2 = '_'.$args['args'];
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: Hiroaki Miyashita
3
  Donate link: http://wpgogo.com/development/custom-field-template.html
4
  Tags: custom field, custom fields, custom, fields, field, template, meta, custom field template, custom post type
5
  Requires at least: 2.1
6
- Tested up to: 4.9.6
7
- Stable tag: 2.4.1
8
  License: GPLv2 or later
9
 
10
  The Custom Field Template plugin extends the functionality of custom fields.
@@ -114,6 +114,9 @@ See the default template and modify it.
114
 
115
  == Changelog ==
116
 
 
 
 
117
  = 2.4.1 =
118
  * Bugfix: save button with file delete checkboxes.
119
 
3
  Donate link: http://wpgogo.com/development/custom-field-template.html
4
  Tags: custom field, custom fields, custom, fields, field, template, meta, custom field template, custom post type
5
  Requires at least: 2.1
6
+ Tested up to: 4.9.8
7
+ Stable tag: 2.4.2
8
  License: GPLv2 or later
9
 
10
  The Custom Field Template plugin extends the functionality of custom fields.
114
 
115
  == Changelog ==
116
 
117
+ = 2.4.2 =
118
+ * Support for Gutenberg.
119
+
120
  = 2.4.1 =
121
  * Bugfix: save button with file delete checkboxes.
122