diff -r 7b1b88e27a20 -r 48c4eec2b7e6 wp/wp-includes/blocks/cover.php --- a/wp/wp-includes/blocks/cover.php Thu Sep 29 08:06:27 2022 +0200 +++ b/wp/wp-includes/blocks/cover.php Fri Sep 05 18:40:08 2025 +0200 @@ -8,8 +8,10 @@ /** * Renders the `core/cover` block on server. * - * @param array $attributes The block attributes. - * @param array $content The block rendered content. + * @since 6.0.0 + * + * @param array $attributes The block attributes. + * @param string $content The block rendered content. * * @return string Returns the cover block markup, if useFeaturedImage is true. */ @@ -25,7 +27,7 @@ ); if ( isset( $attributes['focalPoint'] ) ) { - $object_position = round( $attributes['focalPoint']['x'] * 100 ) . '%' . ' ' . round( $attributes['focalPoint']['y'] * 100 ) . '%'; + $object_position = round( $attributes['focalPoint']['x'] * 100 ) . '% ' . round( $attributes['focalPoint']['y'] * 100 ) . '%'; $attr['data-object-position'] = $object_position; $attr['style'] = 'object-position: ' . $object_position; } @@ -34,7 +36,7 @@ /* * Inserts the featured image between the (1st) cover 'background' `span` and 'inner_container' `div`, - * and removes eventual withespace characters between the two (typically introduced at template level) + * and removes eventual whitespace characters between the two (typically introduced at template level) */ $inner_container_start = '/