Skip to content

Commit

Permalink
Fix focal point error when the Featured Image is applied (#40643)
Browse files Browse the repository at this point in the history
  • Loading branch information
ndiego authored and adamziel committed Apr 29, 2022
1 parent d8cac5b commit 8a26638
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/block-library/src/cover/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ function render_block_core_cover( $attributes, $content ) {
$object_position = '';
if ( isset( $attributes['focalPoint'] ) ) {
$object_position = round( $attributes['focalPoint']['x'] * 100 ) . '%' . ' ' .
round( $attributes['focalPoint']['x'] * 100 ) . '%';
round( $attributes['focalPoint']['y'] * 100 ) . '%';
}

$image_template = '<img
Expand Down

0 comments on commit 8a26638

Please sign in to comment.