Skip to content

Commit b45adb7

Browse files
author
Marco Pereirinha
committed
Warm the cloudinary_id with the public_id for fetched images
1 parent 30d00be commit b45adb7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

php/class-media.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1140,6 +1140,7 @@ public function get_cloudinary_id( $attachment_id ) {
11401140
$extension = $image_format;
11411141
}
11421142
}
1143+
$cloudinary_id = $public_id;
11431144
if ( 'fetch' !== $this->get_media_delivery( $attachment_id ) ) {
11441145
$cloudinary_id = $public_id . '.' . $extension;
11451146
}

0 commit comments

Comments
 (0)