From 90d7eeb6f739dd502fd457a0e1937f720547ffca Mon Sep 17 00:00:00 2001 From: Jerome Duncan Date: Fri, 13 Oct 2017 15:34:26 +0100 Subject: [PATCH] Fix an issue when a post is deleted but still present in the meta. This causes the deleted items id not to be included in the textarea therefore fixing it in the panel --- init.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.php b/init.php index df6dbab..4056fa6 100644 --- a/init.php +++ b/init.php @@ -329,7 +329,7 @@ public function get_thumb( $object ) { * @return int The object ID. */ public function get_id( $object ) { - return $object->ID; + return isset($object->ID) ? $object->ID : false; } /**