Applied fixes from StyleCI
Diff
src/Exceptions/UnsatisfiedDependencyException.php | 1 -
src/Models/Meta.php | 7 +++++--
2 files changed, 4 insertions(+), 4 deletions(-)
@@ -11,5 +11,4 @@
*/
class UnsatisfiedDependencyException extends RuntimeException
{
//
}
@@ -71,8 +71,8 @@
* if you want to get the current page's meta)
* @param string|null $name
* @param bool $format whether to format this field or not
* @return mixed
* @throws UnsatisfiedDependencyException
* @return mixed
*/
public static function field($page = null, $name = null, $format = true)
{
@@ -91,13 +91,14 @@
$value = static::get($page, $name);
if (is_serialized($value))
if (is_serialized($value)) {
$value = @unserialize($value);
}
$field = static::get($page, '_' . $name);
if (!acf_is_field_key($field)) {
return null;
return;
}
$field = get_field_object($field, $name, false, false);