Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: fixed

Featured images: Fix disabling featured images in post preview
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,8 @@ function jetpack_featured_images_remove_post_thumbnail( $metadata, $object_id, $
return $metadata;
}
}
add_filter( 'get_post_metadata', 'jetpack_featured_images_remove_post_thumbnail', true, 3 ); // @phan-suppress-current-line PhanTypeMismatchArgument.
// We need this hook to execute at the end since core overrides the thumbnail id in _wp_preview_post_thumbnail_filter.
add_filter( 'get_post_metadata', 'jetpack_featured_images_remove_post_thumbnail', PHP_INT_MAX, 3 );

}

Expand Down
Loading