Skip to content

Commit

Permalink
Return false if no image meta
Browse files Browse the repository at this point in the history
  • Loading branch information
roborourke authored Apr 3, 2024
1 parent 517290b commit 28890d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/cropper/namespace.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 28890d7

Please sign in to comment.