Skip to content

Commit

Permalink
Chores: phpcs
Browse files Browse the repository at this point in the history
  • Loading branch information
efuller committed Nov 25, 2024
1 parent 6945e4f commit 9051423
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion admin/apple-actions/index/class-export.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 ?? '',
Expand Down
2 changes: 1 addition & 1 deletion includes/apple-exporter/builders/class-components.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 9051423

Please sign in to comment.