Version Description
- Fix fatal error that occurred when using with bogo.
Download this release
Release Info
Developer | inc2734 |
Plugin | Smart Custom Fields |
Version | 4.2.2 |
Comparing to | |
See all releases |
Code changes from version 4.2.1 to 4.2.2
- classes/class.scf.php +4 -0
- readme.txt +4 -1
- smart-custom-fields.php +1 -1
- vendor/autoload.php +1 -1
- vendor/composer/autoload_real.php +4 -4
- vendor/composer/autoload_static.php +2 -2
- vendor/composer/installed.php +6 -6
classes/class.scf.php
CHANGED
@@ -687,6 +687,10 @@ class SCF {
|
|
687 |
* @return Smart_Custom_Fields_Field_Base|null
|
688 |
*/
|
689 |
public static function get_field( $object, $field_name ) {
|
|
|
|
|
|
|
|
|
690 |
$settings = self::get_settings( $object );
|
691 |
foreach ( $settings as $setting ) {
|
692 |
$fields = $setting->get_fields();
|
687 |
* @return Smart_Custom_Fields_Field_Base|null
|
688 |
*/
|
689 |
public static function get_field( $object, $field_name ) {
|
690 |
+
if ( '_locale' === $field_name || '_original_post' === $field_name ) {
|
691 |
+
return null;
|
692 |
+
}
|
693 |
+
|
694 |
$settings = self::get_settings( $object );
|
695 |
foreach ( $settings as $setting ) {
|
696 |
$fields = $setting->get_fields();
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: http://www.amazon.co.jp/registry/wishlist/39ANKRNSTNW40
|
|
4 |
Tags: plugin, custom field, custom, field, meta, meta field, repeat, repeatable
|
5 |
Requires at least: 3.9
|
6 |
Tested up to: 5.8
|
7 |
-
Stable tag: 4.2.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -129,6 +129,9 @@ You can translate this plugin into your language by using [GlotPress](https://tr
|
|
129 |
|
130 |
== Changelog ==
|
131 |
|
|
|
|
|
|
|
132 |
= 4.2.1 =
|
133 |
* Fix Worning/Fatal error on PHP7/8.
|
134 |
* Fix sanitize missing in the textarea field.
|
4 |
Tags: plugin, custom field, custom, field, meta, meta field, repeat, repeatable
|
5 |
Requires at least: 3.9
|
6 |
Tested up to: 5.8
|
7 |
+
Stable tag: 4.2.2
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
129 |
|
130 |
== Changelog ==
|
131 |
|
132 |
+
= 4.2.2 =
|
133 |
+
* Fix fatal error that occurred when using with bogo.
|
134 |
+
|
135 |
= 4.2.1 =
|
136 |
* Fix Worning/Fatal error on PHP7/8.
|
137 |
* Fix sanitize missing in the textarea field.
|
smart-custom-fields.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin name: Smart Custom Fields
|
4 |
* Plugin URI: https://github.com/inc2734/smart-custom-fields/
|
5 |
* Description: Smart Custom Fields is a simple plugin that management custom fields.
|
6 |
-
* Version: 4.2.
|
7 |
* Author: inc2734
|
8 |
* Author URI: https://2inc.org
|
9 |
* Text Domain: smart-custom-fields
|
3 |
* Plugin name: Smart Custom Fields
|
4 |
* Plugin URI: https://github.com/inc2734/smart-custom-fields/
|
5 |
* Description: Smart Custom Fields is a simple plugin that management custom fields.
|
6 |
+
* Version: 4.2.2
|
7 |
* Author: inc2734
|
8 |
* Author URI: https://2inc.org
|
9 |
* Text Domain: smart-custom-fields
|
vendor/autoload.php
CHANGED
@@ -4,4 +4,4 @@
|
|
4 |
|
5 |
require_once __DIR__ . '/composer/autoload_real.php';
|
6 |
|
7 |
-
return
|
4 |
|
5 |
require_once __DIR__ . '/composer/autoload_real.php';
|
6 |
|
7 |
+
return ComposerAutoloaderInit6caf509ee70c5c9cdd5c56aba5d8af0f::getLoader();
|
vendor/composer/autoload_real.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
|
3 |
// autoload_real.php @generated by Composer
|
4 |
|
5 |
-
class
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
@@ -24,15 +24,15 @@ class ComposerAutoloaderInitf830a52458cfb8444bb85b83f657baeb
|
|
24 |
|
25 |
require __DIR__ . '/platform_check.php';
|
26 |
|
27 |
-
spl_autoload_register(array('
|
28 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
|
29 |
-
spl_autoload_unregister(array('
|
30 |
|
31 |
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
|
32 |
if ($useStaticLoader) {
|
33 |
require __DIR__ . '/autoload_static.php';
|
34 |
|
35 |
-
call_user_func(\Composer\Autoload\
|
36 |
} else {
|
37 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
38 |
foreach ($map as $namespace => $path) {
|
2 |
|
3 |
// autoload_real.php @generated by Composer
|
4 |
|
5 |
+
class ComposerAutoloaderInit6caf509ee70c5c9cdd5c56aba5d8af0f
|
6 |
{
|
7 |
private static $loader;
|
8 |
|
24 |
|
25 |
require __DIR__ . '/platform_check.php';
|
26 |
|
27 |
+
spl_autoload_register(array('ComposerAutoloaderInit6caf509ee70c5c9cdd5c56aba5d8af0f', 'loadClassLoader'), true, true);
|
28 |
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
|
29 |
+
spl_autoload_unregister(array('ComposerAutoloaderInit6caf509ee70c5c9cdd5c56aba5d8af0f', 'loadClassLoader'));
|
30 |
|
31 |
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
|
32 |
if ($useStaticLoader) {
|
33 |
require __DIR__ . '/autoload_static.php';
|
34 |
|
35 |
+
call_user_func(\Composer\Autoload\ComposerStaticInit6caf509ee70c5c9cdd5c56aba5d8af0f::getInitializer($loader));
|
36 |
} else {
|
37 |
$map = require __DIR__ . '/autoload_namespaces.php';
|
38 |
foreach ($map as $namespace => $path) {
|
vendor/composer/autoload_static.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
|
5 |
namespace Composer\Autoload;
|
6 |
|
7 |
-
class
|
8 |
{
|
9 |
public static $classMap = array (
|
10 |
'Composer\\InstalledVersions' => __DIR__ . '/..' . '/composer/InstalledVersions.php',
|
@@ -13,7 +13,7 @@ class ComposerStaticInitf830a52458cfb8444bb85b83f657baeb
|
|
13 |
public static function getInitializer(ClassLoader $loader)
|
14 |
{
|
15 |
return \Closure::bind(function () use ($loader) {
|
16 |
-
$loader->classMap =
|
17 |
|
18 |
}, null, ClassLoader::class);
|
19 |
}
|
4 |
|
5 |
namespace Composer\Autoload;
|
6 |
|
7 |
+
class ComposerStaticInit6caf509ee70c5c9cdd5c56aba5d8af0f
|
8 |
{
|
9 |
public static $classMap = array (
|
10 |
'Composer\\InstalledVersions' => __DIR__ . '/..' . '/composer/InstalledVersions.php',
|
13 |
public static function getInitializer(ClassLoader $loader)
|
14 |
{
|
15 |
return \Closure::bind(function () use ($loader) {
|
16 |
+
$loader->classMap = ComposerStaticInit6caf509ee70c5c9cdd5c56aba5d8af0f::$classMap;
|
17 |
|
18 |
}, null, ClassLoader::class);
|
19 |
}
|
vendor/composer/installed.php
CHANGED
@@ -1,22 +1,22 @@
|
|
1 |
<?php return array(
|
2 |
'root' => array(
|
3 |
-
'pretty_version' => '4.2.
|
4 |
-
'version' => '4.2.
|
5 |
'type' => 'wordpress-plugin',
|
6 |
'install_path' => __DIR__ . '/../../',
|
7 |
'aliases' => array(),
|
8 |
-
'reference' => '
|
9 |
'name' => '__root__',
|
10 |
'dev' => false,
|
11 |
),
|
12 |
'versions' => array(
|
13 |
'__root__' => array(
|
14 |
-
'pretty_version' => '4.2.
|
15 |
-
'version' => '4.2.
|
16 |
'type' => 'wordpress-plugin',
|
17 |
'install_path' => __DIR__ . '/../../',
|
18 |
'aliases' => array(),
|
19 |
-
'reference' => '
|
20 |
'dev_requirement' => false,
|
21 |
),
|
22 |
),
|
1 |
<?php return array(
|
2 |
'root' => array(
|
3 |
+
'pretty_version' => '4.2.2',
|
4 |
+
'version' => '4.2.2.0',
|
5 |
'type' => 'wordpress-plugin',
|
6 |
'install_path' => __DIR__ . '/../../',
|
7 |
'aliases' => array(),
|
8 |
+
'reference' => '9cc050cc97984d89cfc0423e430a87d8d11a43ee',
|
9 |
'name' => '__root__',
|
10 |
'dev' => false,
|
11 |
),
|
12 |
'versions' => array(
|
13 |
'__root__' => array(
|
14 |
+
'pretty_version' => '4.2.2',
|
15 |
+
'version' => '4.2.2.0',
|
16 |
'type' => 'wordpress-plugin',
|
17 |
'install_path' => __DIR__ . '/../../',
|
18 |
'aliases' => array(),
|
19 |
+
'reference' => '9cc050cc97984d89cfc0423e430a87d8d11a43ee',
|
20 |
'dev_requirement' => false,
|
21 |
),
|
22 |
),
|