diff --git a/admin/apple-actions/index/class-export.php b/admin/apple-actions/index/class-export.php index bc16d415..a2dad9b2 100644 --- a/admin/apple-actions/index/class-export.php +++ b/admin/apple-actions/index/class-export.php @@ -129,7 +129,8 @@ public function fetch_exporter() { $cover_caption = wp_get_attachment_caption( $cover_meta_id ); } $image_url = wp_get_attachment_image_url( $cover_meta_id, 'full' ); - $image_url = apply_filters( 'jetpack_photon_url', $image_url ); + // If Jetpack Boost is active, serve the cover image from the CDN. + $image_url = apply_filters( 'jetpack_photon_url', $image_url ); // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound $post_thumb = [ 'caption' => ! empty( $cover_caption ) ? $cover_caption : '', 'url' => $image_url ?? '', diff --git a/includes/apple-exporter/builders/class-components.php b/includes/apple-exporter/builders/class-components.php index 17809ca1..00c879eb 100644 --- a/includes/apple-exporter/builders/class-components.php +++ b/includes/apple-exporter/builders/class-components.php @@ -221,7 +221,7 @@ private function add_thumbnail_if_needed( &$components ) { } // If the URL for the first image is different from the URL for the featured image, use the featured image. - $cover_config = $this->content_cover(); + $cover_config = $this->content_cover(); if ( $cover_config && $original_url !== $cover_config['url'] ) { return; }