Skip to content

Commit

Permalink
Catch the use case where the featured image needs to be used as the c…
Browse files Browse the repository at this point in the history
…over
  • Loading branch information
efuller committed Nov 27, 2024
1 parent 9051423 commit 2b2d53c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions admin/apple-actions/index/class-export.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
}
Expand Down

0 comments on commit 2b2d53c

Please sign in to comment.