From 2b2d53cc2cdb16261451b80fe95875b8ad76b983 Mon Sep 17 00:00:00 2001 From: efuller Date: Wed, 27 Nov 2024 15:42:41 -0500 Subject: [PATCH] Catch the use case where the featured image needs to be used as the cover --- admin/apple-actions/index/class-export.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/admin/apple-actions/index/class-export.php b/admin/apple-actions/index/class-export.php index a2dad9b2..d925e577 100644 --- a/admin/apple-actions/index/class-export.php +++ b/admin/apple-actions/index/class-export.php @@ -138,6 +138,8 @@ public function fetch_exporter() { } else { $thumb_id = get_post_thumbnail_id( $this->id ); $post_thumb_url = wp_get_attachment_url( $thumb_id ); + // If Jetpack Boost is active, serve the cover image from the CDN. + $post_thumb_url = apply_filters( 'jetpack_photon_url', $post_thumb_url ); // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound if ( empty( $cover_caption ) ) { $cover_caption = wp_get_attachment_caption( $thumb_id ); }