From 28890d7eece42ff6cafee482ed57fd529e36c6d4 Mon Sep 17 00:00:00 2001 From: Robert O'Rourke <23417+roborourke@users.noreply.github.com> Date: Wed, 3 Apr 2024 13:51:35 +0100 Subject: [PATCH] Return false if no image meta --- inc/cropper/namespace.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/cropper/namespace.php b/inc/cropper/namespace.php index 0ab5f23..1a82b86 100644 --- a/inc/cropper/namespace.php +++ b/inc/cropper/namespace.php @@ -962,7 +962,7 @@ function img_tag_add_attr( bool $value, string $image ) : bool { */ function get_img_src_dimensions( $image_src, $image_meta ) { if ( empty( $image_meta ) ) { - return $image_src; + return false; } // Bail early if an image has been inserted and later edited.