We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8509a10 commit bda58f2Copy full SHA for bda58f2
cloudinary-image-management-and-manipulation-in-the-cloud-cdn/php/class-media.php
@@ -1812,7 +1812,7 @@ public function setup() {
1812
* @return array
1813
*/
1814
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 ) ) {
+ if ( ! empty( $image_meta['file'] ) && $this->has_public_id( $attachment_id ) ) {
1816
$cld_file = 'v' . $this->get_cloudinary_version( $attachment_id ) . '/' . $this->get_cloudinary_id( $attachment_id );
1817
if ( false === strpos( $image_meta['file'], $cld_file ) ) {
1818
$image_meta['file'] = $cld_file;
0 commit comments