diff --git a/wp-admin/site-editor.php b/wp-admin/site-editor.php index 86f140cde3..e3f48c2f23 100644 --- a/wp-admin/site-editor.php +++ b/wp-admin/site-editor.php @@ -76,7 +76,7 @@ $custom_settings = array( $custom_settings['__experimentalAdditionalBlockPatterns'] = WP_Block_Patterns_Registry::get_instance()->get_all_registered( true ); $custom_settings['__experimentalAdditionalBlockPatternCategories'] = WP_Block_Pattern_Categories_Registry::get_instance()->get_all_registered( true ); -$editor_settings = get_block_editor_settings( $custom_settings, $block_editor_context ); +$editor_settings = get_block_editor_settings( $custom_settings, $block_editor_context ); if ( isset( $_GET['postType'] ) && ! isset( $_GET['postId'] ) ) { $post_type = get_post_type_object( $_GET['postType'] ); diff --git a/wp-includes/class-wp-block-patterns-registry.php b/wp-includes/class-wp-block-patterns-registry.php index 81ee2e261c..8b312d56c2 100644 --- a/wp-includes/class-wp-block-patterns-registry.php +++ b/wp-includes/class-wp-block-patterns-registry.php @@ -104,6 +104,7 @@ final class WP_Block_Patterns_Registry { $pattern_properties, array( 'name' => $pattern_name ) ); + $this->registered_patterns[ $pattern_name ] = $pattern; // If the pattern is registered inside an action other than `init`, store it diff --git a/wp-includes/rest-api.php b/wp-includes/rest-api.php index 13666c0dfc..f05142baac 100644 --- a/wp-includes/rest-api.php +++ b/wp-includes/rest-api.php @@ -2870,8 +2870,8 @@ function rest_preload_api_request( $memo, $path ) { $server = rest_get_server(); /** This filter is documented in wp-includes/rest-api/class-wp-rest-server.php */ $response = apply_filters( 'rest_post_dispatch', rest_ensure_response( $response ), $server, $request ); - $embed = $request->has_param( '_embed' ) ? rest_parse_embed_param( $request['_embed'] ) : false; - $data = (array) $server->response_to_data( $response, $embed ); + $embed = $request->has_param( '_embed' ) ? rest_parse_embed_param( $request['_embed'] ) : false; + $data = (array) $server->response_to_data( $response, $embed ); if ( 'OPTIONS' === $method ) { $memo[ $method ][ $path ] = array( diff --git a/wp-includes/version.php b/wp-includes/version.php index 9c3d9c66ee..947f86d0f4 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.1-alpha-53439'; +$wp_version = '6.1-alpha-53441'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.