Skip to content

Commit bda58f2

Browse files
committed
remove is_Array
1 parent 8509a10 commit bda58f2

File tree

1 file changed

+1
-1
lines changed
  • cloudinary-image-management-and-manipulation-in-the-cloud-cdn/php

1 file changed

+1
-1
lines changed

cloudinary-image-management-and-manipulation-in-the-cloud-cdn/php/class-media.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1812,7 +1812,7 @@ public function setup() {
18121812
* @return array
18131813
*/
18141814
public function match_file_name_with_cloudinary_source( $image_meta, $attachment_id ) {
1815-
if ( is_array( $image_meta ) && ! empty( $image_meta['file'] ) && $this->has_public_id( $attachment_id ) ) {
1815+
if ( ! empty( $image_meta['file'] ) && $this->has_public_id( $attachment_id ) ) {
18161816
$cld_file = 'v' . $this->get_cloudinary_version( $attachment_id ) . '/' . $this->get_cloudinary_id( $attachment_id );
18171817
if ( false === strpos( $image_meta['file'], $cld_file ) ) {
18181818
$image_meta['file'] = $cld_file;

0 commit comments

Comments
 (0)