diff --git a/src/wp-includes/blocks/cover.php b/src/wp-includes/blocks/cover.php new file mode 100644 index 0000000000..d2f1959bdb --- /dev/null +++ b/src/wp-includes/blocks/cover.php @@ -0,0 +1,85 @@ +'; + + $image = sprintf( + $image_template, + esc_attr( get_the_post_thumbnail_caption() ), + esc_url( $current_featured_image ), + esc_attr( $object_position ), + esc_attr( $object_position ) + ); + + $content = str_replace( + '' . $image . ' 'render_block_core_cover', + ) + ); +} +add_action( 'init', 'register_block_core_cover' );