Skip to content

Commit 3651433

Browse files
author
Marco Pereirinha
committed
The GT override meta is not part of the Cloudinary key
1 parent 58638e6 commit 3651433

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

php/class-delivery.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ public function process_featured_image( $html, $post_id, $attachment_id ) {
184184
$tag_element['atts']['class'][] = 'wp-image-' . $attachment_id;
185185
$tag_element['atts']['class'][] = 'wp-post-' . $post_id;
186186

187-
if ( true === (bool) $this->media->get_post_meta( $post_id, Global_Transformations::META_FEATURED_IMAGE_KEY, true ) ) {
187+
if ( true === (bool) get_post_meta( $post_id, Global_Transformations::META_FEATURED_IMAGE_KEY, true ) ) {
188188
$tag_element['atts']['class'][] = 'cld-overwrite';
189189
}
190190

php/class-media.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2107,7 +2107,7 @@ public function get_upload_options( $attachment_id ) {
21072107
public function maybe_overwrite_featured_image( $attachment_id ) {
21082108
$overwrite = false;
21092109
if ( $this->doing_featured_image && $this->doing_featured_image === (int) $attachment_id ) {
2110-
$overwrite = (bool) $this->get_post_meta( get_the_ID(), Global_Transformations::META_FEATURED_IMAGE_KEY, true );
2110+
$overwrite = (bool) get_post_meta( get_the_ID(), Global_Transformations::META_FEATURED_IMAGE_KEY, true );
21112111
}
21122112

21132113
return $overwrite;

0 commit comments

Comments
 (0)