Custom Field Template - Version 2.5.4

Version Description

  • Code cleaning.
Download this release

Release Info

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

Code changes from version 2.5.3 to 2.5.4

Files changed (2) hide show
  1. custom-field-template.php +3 -3
  2. readme.txt +4 -1
custom-field-template.php CHANGED
@@ -5,7 +5,7 @@ Plugin URI: https://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: https://wpgogo.com/
8
- Version: 2.5.3
9
  Text Domain: custom-field-template
10
  Domain Path: /
11
  */
@@ -15,7 +15,7 @@ This program is based on the rc:custom_field_gui plugin written by Joshua Sigar.
15
  I appreciate your efforts, Joshua.
16
  */
17
 
18
- /* Copyright 2008 - 2020 Hiroaki Miyashita
19
 
20
  This program is free software; you can redistribute it and/or modify
21
  it under the terms of the GNU General Public License as published by
@@ -2016,7 +2016,7 @@ jQuery(this).addClass("closed");
2016
 
2017
  if( isset( $post_id ) && $post_id > 0 && $_REQUEST['default'] != true ) {
2018
  $selected = $this->get_post_meta( $post_id, $title );
2019
- $ct_value = count($selected);
2020
  $selected = isset($selected[ $cftnum ]) ? $selected[ $cftnum ] : '';
2021
  } else {
2022
  $selected = stripslashes($default);
5
  Description: This plugin adds the default custom fields on the Write Post/Page.
6
  Author: Hiroaki Miyashita
7
  Author URI: https://wpgogo.com/
8
+ Version: 2.5.4
9
  Text Domain: custom-field-template
10
  Domain Path: /
11
  */
15
  I appreciate your efforts, Joshua.
16
  */
17
 
18
+ /* Copyright 2008 - 2021 Hiroaki Miyashita
19
 
20
  This program is free software; you can redistribute it and/or modify
21
  it under the terms of the GNU General Public License as published by
2016
 
2017
  if( isset( $post_id ) && $post_id > 0 && $_REQUEST['default'] != true ) {
2018
  $selected = $this->get_post_meta( $post_id, $title );
2019
+ $ct_value = is_array($selected) ? count($selected) : 0;
2020
  $selected = isset($selected[ $cftnum ]) ? $selected[ $cftnum ] : '';
2021
  } else {
2022
  $selected = stripslashes($default);
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
4
  Tags: custom field, custom fields, custom, fields, field, template, meta, custom field template, custom post type, acf, advanced
5
  Requires at least: 2.1
6
  Tested up to: 5.6
7
- Stable tag: 2.5.3
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.5.3 =
118
  * WordPress 5.6.
119
 
4
  Tags: custom field, custom fields, custom, fields, field, template, meta, custom field template, custom post type, acf, advanced
5
  Requires at least: 2.1
6
  Tested up to: 5.6
7
+ Stable tag: 2.5.4
8
  License: GPLv2 or later
9
 
10
  The Custom Field Template plugin extends the functionality of custom fields.
114
 
115
  == Changelog ==
116
 
117
+ = 2.5.4 =
118
+ * Code cleaning.
119
+
120
  = 2.5.3 =
121
  * WordPress 5.6.
122