diff --git a/wp-includes/blocks/cover.php b/wp-includes/blocks/cover.php
index fc1aed7b96..9e14791ba8 100644
--- a/wp-includes/blocks/cover.php
+++ b/wp-includes/blocks/cover.php
@@ -32,12 +32,15 @@ function render_block_core_cover( $attributes, $content ) {
$image = get_the_post_thumbnail( null, 'post-thumbnail', $attr );
- $content = str_replace(
- '
' . $image . '
]+wp-block-cover__inner-container[\s|"][^>]*>/U';
+ if ( 1 === preg_match( $inner_container_start, $content, $matches, PREG_OFFSET_CAPTURE ) ) {
+ $offset = $matches[0][1];
+ $content = substr( $content, 0, $offset ) . $image . substr( $content, $offset );
+ }
} else {
if ( in_the_loop() ) {
update_post_thumbnail_cache();
diff --git a/wp-includes/class-wp-oembed.php b/wp-includes/class-wp-oembed.php
index 321f25c40f..4e83bc75da 100644
--- a/wp-includes/class-wp-oembed.php
+++ b/wp-includes/class-wp-oembed.php
@@ -202,8 +202,8 @@ class WP_oEmbed {
* | Instagram TV | instagram.com | 5.1.0 | 5.5.2 |
* | Instagram TV | instagr.am | 5.1.0 | 5.5.2 |
* | Facebook | facebook.com | 4.7.0 | 5.5.2 |
- * | Meetup.com | meetup.com | 3.9.0 | 6.1.0 |
- * | Meetup.com | meetu.ps | 3.9.0 | 6.1.0 |
+ * | Meetup.com | meetup.com | 3.9.0 | 6.0.1 |
+ * | Meetup.com | meetu.ps | 3.9.0 | 6.0.1 |
*
* @see wp_oembed_add_provider()
*
diff --git a/wp-includes/version.php b/wp-includes/version.php
index 33c629da43..8da33a154d 100644
--- a/wp-includes/version.php
+++ b/wp-includes/version.php
@@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
-$wp_version = '6.1-alpha-53644';
+$wp_version = '6.1-alpha-53646';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.