From 36514330f2137b8d967b00249aedd766f431455c Mon Sep 17 00:00:00 2001 From: Marco Pereirinha Date: Thu, 15 Jul 2021 00:22:29 +0100 Subject: [PATCH] The GT override meta is not part of the Cloudinary key --- php/class-delivery.php | 2 +- php/class-media.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/php/class-delivery.php b/php/class-delivery.php index b69b438c3..a47cfb018 100644 --- a/php/class-delivery.php +++ b/php/class-delivery.php @@ -184,7 +184,7 @@ public function process_featured_image( $html, $post_id, $attachment_id ) { $tag_element['atts']['class'][] = 'wp-image-' . $attachment_id; $tag_element['atts']['class'][] = 'wp-post-' . $post_id; - if ( true === (bool) $this->media->get_post_meta( $post_id, Global_Transformations::META_FEATURED_IMAGE_KEY, true ) ) { + if ( true === (bool) get_post_meta( $post_id, Global_Transformations::META_FEATURED_IMAGE_KEY, true ) ) { $tag_element['atts']['class'][] = 'cld-overwrite'; } diff --git a/php/class-media.php b/php/class-media.php index 9cf197e53..58c9a1b6f 100644 --- a/php/class-media.php +++ b/php/class-media.php @@ -2107,7 +2107,7 @@ public function get_upload_options( $attachment_id ) { public function maybe_overwrite_featured_image( $attachment_id ) { $overwrite = false; if ( $this->doing_featured_image && $this->doing_featured_image === (int) $attachment_id ) { - $overwrite = (bool) $this->get_post_meta( get_the_ID(), Global_Transformations::META_FEATURED_IMAGE_KEY, true ); + $overwrite = (bool) get_post_meta( get_the_ID(), Global_Transformations::META_FEATURED_IMAGE_KEY, true ); } return $overwrite;