Skip to content

Commit 97a564e

Browse files
committed
typo on post_id
1 parent ad70a2d commit 97a564e

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
@@ -656,7 +656,7 @@ public function get_cloudinary_id( $attachment_id ) {
656656

657657
// A cloudinary_id is a public_id with a file extension.
658658
$public_id = $this->get_public_id( $attachment_id );
659-
$suffix_data = $this->get_post_meta( $post->ID, Sync::META_KEYS['suffix'], true );
659+
$suffix_data = $this->get_post_meta( $attachment_id, Sync::META_KEYS['suffix'], true );
660660
if ( is_array( $suffix_data ) && ! empty( $suffix_data['suffix'] ) && $suffix_data['public_id'] === $public_id ) {
661661
$public_id = $public_id . $suffix_data['suffix'];
662662
}

0 commit comments

Comments
 (0)