Skip to content

Commit

Permalink
Consolidate statement
Browse files Browse the repository at this point in the history
  • Loading branch information
danielbachhuber committed Jul 25, 2018
1 parent 328a08b commit 246b3fa
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions editor/components/post-featured-image/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ function PostFeaturedImage( { currentPostId, featuredImageId, onUpdateImage, onR
mediaHeight,
mediaSourceUrl;
if ( media ) {
let mediaSize = 'post-thumbnail';
mediaSize = applyFilters( 'editor.PostFeaturedImage.imageSize', mediaSize, media.id, currentPostId );
const mediaSize = applyFilters( 'editor.PostFeaturedImage.imageSize', 'post-thumbnail', media.id, currentPostId );
if ( has( media, [ 'media_details', 'sizes', mediaSize ] ) ) {
mediaWidth = media.media_details.sizes[ mediaSize ].width;
mediaHeight = media.media_details.sizes[ mediaSize ].height;
Expand Down

0 comments on commit 246b3fa

Please sign in to comment.