From daf3c5ecfc55f9a8a21e93a6091fb0b9769b1593 Mon Sep 17 00:00:00 2001 From: Scott Kingsley Clark Date: Thu, 18 Nov 2021 21:30:04 -0600 Subject: [PATCH] Adjust handling for $pod_name detection to handle more cases --- classes/PodsField.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/classes/PodsField.php b/classes/PodsField.php index d254a5f2bd..d17e6d45a9 100644 --- a/classes/PodsField.php +++ b/classes/PodsField.php @@ -1,6 +1,8 @@ pod ) ) { - if ( $args->pod instanceof Pods ) { + if ( $args->pod instanceof Pods || $args->pod instanceof Pod_Deprecated ) { $pod_name = $args->pod->pod_data['name']; - } else { + } elseif ( $args->pod instanceof Pod || is_array( $args->pod ) ) { $pod_name = $args->pod['name']; } }