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 ad70a2d commit 97a564eCopy full SHA for 97a564e
cloudinary-image-management-and-manipulation-in-the-cloud-cdn/php/class-media.php
@@ -656,7 +656,7 @@ public function get_cloudinary_id( $attachment_id ) {
656
657
// A cloudinary_id is a public_id with a file extension.
658
$public_id = $this->get_public_id( $attachment_id );
659
- $suffix_data = $this->get_post_meta( $post->ID, Sync::META_KEYS['suffix'], true );
+ $suffix_data = $this->get_post_meta( $attachment_id, Sync::META_KEYS['suffix'], true );
660
if ( is_array( $suffix_data ) && ! empty( $suffix_data['suffix'] ) && $suffix_data['public_id'] === $public_id ) {
661
$public_id = $public_id . $suffix_data['suffix'];
662
}
0 commit comments