Version Description
- Bugfix: import options.
Download this release
Release Info
Developer | Hiroaki Miyashita |
Plugin | Custom Field Template |
Version | 2.5.8 |
Comparing to | |
See all releases |
Code changes from version 2.5.7 to 2.5.8
- custom-field-template.php +8 -6
- 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.
|
9 |
Text Domain: custom-field-template
|
10 |
Domain Path: /
|
11 |
*/
|
@@ -1134,11 +1134,13 @@ type = file';
|
|
1134 |
readfile ($_FILES['cftfile']['tmp_name']);
|
1135 |
$import = ob_get_contents();
|
1136 |
ob_end_clean();
|
1137 |
-
|
1138 |
-
|
1139 |
-
|
1140 |
-
|
1141 |
-
|
|
|
|
|
1142 |
endif;
|
1143 |
endif;
|
1144 |
elseif ( !empty($_POST['custom_field_template_reset_options_submit']) ) :
|
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.8
|
9 |
Text Domain: custom-field-template
|
10 |
Domain Path: /
|
11 |
*/
|
1134 |
readfile ($_FILES['cftfile']['tmp_name']);
|
1135 |
$import = ob_get_contents();
|
1136 |
ob_end_clean();
|
1137 |
+
if ( is_serialized( $import ) ) :
|
1138 |
+
$import = @unserialize( trim( $import ), ['allowed_classes' => false]);
|
1139 |
+
if ( 'array' == gettype( $import ) ) :
|
1140 |
+
update_option('custom_field_template_data', $import);
|
1141 |
+
$message = __('Options imported.', 'custom-field-template');
|
1142 |
+
$options = $this->get_custom_field_template_data();
|
1143 |
+
endif;
|
1144 |
endif;
|
1145 |
endif;
|
1146 |
elseif ( !empty($_POST['custom_field_template_reset_options_submit']) ) :
|
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: 6.1.1
|
7 |
-
Stable tag: 2.5.
|
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.7 =
|
118 |
* Multiple validation.
|
119 |
* Loading limitation by the user id, user login and user role.
|
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: 6.1.1
|
7 |
+
Stable tag: 2.5.8
|
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.8 =
|
118 |
+
* Bugfix: import options.
|
119 |
+
|
120 |
= 2.5.7 =
|
121 |
* Multiple validation.
|
122 |
* Loading limitation by the user id, user login and user role.
|