From 5cc972ba4a7cfc16f6788b71767451e9081b2bba Mon Sep 17 00:00:00 2001 From: gziolo Date: Tue, 19 Apr 2022 11:51:07 +0000 Subject: [PATCH] Editor: Include the PHP file for the Cover block This file is copied by the build process but it also needs to be versioned so unit tests can run without issues. Follow-up [53212]. See #55580. Built from https://develop.svn.wordpress.org/trunk@53213 git-svn-id: http://core.svn.wordpress.org/trunk@52802 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/blocks/cover.php | 85 ++++++++++++++++++++++++++++++++++++ wp-includes/version.php | 2 +- 2 files changed, 86 insertions(+), 1 deletion(-) create mode 100644 wp-includes/blocks/cover.php diff --git a/wp-includes/blocks/cover.php b/wp-includes/blocks/cover.php new file mode 100644 index 0000000000..d2f1959bdb --- /dev/null +++ b/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' ); diff --git a/wp-includes/version.php b/wp-includes/version.php index 86a514dd88..efc0712881 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.0-beta1-53212'; +$wp_version = '6.0-beta1-53213'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.