From 8f87db53e5a76cb9326e6a620fcb9f34199456bc Mon Sep 17 00:00:00 2001 From: Daniel Richards Date: Wed, 24 Nov 2021 15:37:51 +0800 Subject: [PATCH 01/30] Add support to post types --- src/wp-includes/post.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/wp-includes/post.php b/src/wp-includes/post.php index a51d616416e03..f7fe8d74516e6 100644 --- a/src/wp-includes/post.php +++ b/src/wp-includes/post.php @@ -384,6 +384,7 @@ function create_initial_post_types() { 'excerpt', 'editor', 'revisions', + 'author', ), ) ); @@ -442,6 +443,7 @@ function create_initial_post_types() { 'excerpt', 'editor', 'revisions', + 'author', ), ) ); From 77a5e680bfa0088411c1cddf036b831ef559ca3c Mon Sep 17 00:00:00 2001 From: Daniel Richards Date: Wed, 24 Nov 2021 16:09:03 +0800 Subject: [PATCH 02/30] Add author support to templates REST API controller --- src/wp-includes/block-template-utils.php | 1 + src/wp-includes/class-wp-block-template.php | 9 +++++++ .../class-wp-rest-templates-controller.php | 27 +++++++++++++++++++ 3 files changed, 37 insertions(+) diff --git a/src/wp-includes/block-template-utils.php b/src/wp-includes/block-template-utils.php index 9b248c1453945..7cf41c37ddc75 100644 --- a/src/wp-includes/block-template-utils.php +++ b/src/wp-includes/block-template-utils.php @@ -516,6 +516,7 @@ function _build_block_template_result_from_post( $post ) { $template->status = $post->post_status; $template->has_theme_file = $has_theme_file; $template->is_custom = true; + $template->post_author = $post->post_author; if ( 'wp_template' === $post->post_type && isset( $default_template_types[ $template->slug ] ) ) { $template->is_custom = false; diff --git a/src/wp-includes/class-wp-block-template.php b/src/wp-includes/class-wp-block-template.php index 3ea090830f51f..9a54b4d97d597 100644 --- a/src/wp-includes/class-wp-block-template.php +++ b/src/wp-includes/class-wp-block-template.php @@ -69,6 +69,7 @@ class WP_Block_Template { */ public $description = ''; + /** * Source of the content. `theme` and `custom` is used for now. * @@ -109,4 +110,12 @@ class WP_Block_Template { * @var bool */ public $is_custom = true; + + /** + * Author. + * + * @since 5.9.0 + * @var int + */ + public $post_author = 0; } diff --git a/src/wp-includes/rest-api/endpoints/class-wp-rest-templates-controller.php b/src/wp-includes/rest-api/endpoints/class-wp-rest-templates-controller.php index 951c8232dde90..e75273188c232 100644 --- a/src/wp-includes/rest-api/endpoints/class-wp-rest-templates-controller.php +++ b/src/wp-includes/rest-api/endpoints/class-wp-rest-templates-controller.php @@ -461,6 +461,24 @@ protected function prepare_item_for_database( $request ) { } } + if ( ! empty( $request['author'] ) ) { + $post_author = (int) $request['author']; + + if ( get_current_user_id() !== $post_author ) { + $user_obj = get_userdata( $post_author ); + + if ( ! $user_obj ) { + return new WP_Error( + 'rest_invalid_author', + __( 'Invalid author ID.' ), + array( 'status' => 400 ) + ); + } + } + + $changes->post_author = $post_author; + } + return $changes; } @@ -547,6 +565,10 @@ public function prepare_item_for_response( $item, $request ) { // phpcs:ignore V $data['has_theme_file'] = (bool) $template->has_theme_file; } + if ( rest_is_field_included( 'author', $fields ) ) { + $data['author'] = (int) $template->post_author; + } + if ( rest_is_field_included( 'area', $fields ) && 'wp_template_part' === $template->type ) { $data['area'] = $template->area; } @@ -758,6 +780,11 @@ public function get_item_schema() { 'context' => array( 'embed', 'view', 'edit' ), 'readonly' => true, ), + 'author' => array ( + 'description' => __( 'The ID for the author of the template.' ), + 'type' => 'integer', + 'context' => array( 'view', 'edit', 'embed' ), + ), ), ); From bdb04b39d7a8b5d56b879d404be2de2d63e94f86 Mon Sep 17 00:00:00 2001 From: Daniel Richards Date: Wed, 24 Nov 2021 17:11:39 +0800 Subject: [PATCH 03/30] Update unit tests --- .../rest-api/wpRestTemplatesController.php | 25 +++++++++++++++- tests/qunit/fixtures/wp-api-generated.js | 30 +++++++++++++++++++ 2 files changed, 54 insertions(+), 1 deletion(-) diff --git a/tests/phpunit/tests/rest-api/wpRestTemplatesController.php b/tests/phpunit/tests/rest-api/wpRestTemplatesController.php index 3d1699e16f4f8..d082d6a809509 100644 --- a/tests/phpunit/tests/rest-api/wpRestTemplatesController.php +++ b/tests/phpunit/tests/rest-api/wpRestTemplatesController.php @@ -102,6 +102,7 @@ public function test_get_items() { 'status' => 'publish', 'wp_id' => self::$post->ID, 'has_theme_file' => false, + 'author' => 0, ), $this->find_and_normalize_template_by_id( $data, 'default//my_template' ) ); @@ -143,6 +144,7 @@ public function test_get_item() { 'status' => 'publish', 'wp_id' => self::$post->ID, 'has_theme_file' => false, + 'author' => 0, ), $data ); @@ -161,6 +163,7 @@ public function test_create_item() { 'description' => 'Just a description', 'title' => 'My Template', 'content' => 'Content', + 'author' => self::$admin_id, ) ); $response = rest_get_server()->dispatch( $request ); @@ -185,6 +188,7 @@ public function test_create_item() { ), 'status' => 'publish', 'has_theme_file' => false, + 'author' => self::$admin_id, ), $data ); @@ -207,6 +211,7 @@ public function test_create_item_raw() { 'content' => array( 'raw' => 'Content', ), + 'author' => self::$admin_id, ) ); $response = rest_get_server()->dispatch( $request ); @@ -231,11 +236,28 @@ public function test_create_item_raw() { ), 'status' => 'publish', 'has_theme_file' => false, + 'author' => self::$admin_id, ), $data ); } + public function test_create_item_invalid_author() { + wp_set_current_user( self::$admin_id ); + $request = new WP_REST_Request( 'POST', '/wp/v2/templates' ); + $request->set_body_params( + array( + 'slug' => 'my_custom_template_invalid_author', + 'description' => 'Just a description', + 'title' => 'My Template', + 'content' => 'Content', + 'author' => -999, + ) + ); + $response = rest_get_server()->dispatch( $request ); + $this->assertErrorResponse( 'rest_invalid_author', $response, 400 ); + } + /** * @covers WP_REST_Templates_Controller::update_item */ @@ -370,7 +392,7 @@ public function test_get_item_schema() { $response = rest_get_server()->dispatch( $request ); $data = $response->get_data(); $properties = $data['schema']['properties']; - $this->assertCount( 11, $properties ); + $this->assertCount( 12, $properties ); $this->assertArrayHasKey( 'id', $properties ); $this->assertArrayHasKey( 'description', $properties ); $this->assertArrayHasKey( 'slug', $properties ); @@ -383,6 +405,7 @@ public function test_get_item_schema() { $this->assertArrayHasKey( 'status', $properties ); $this->assertArrayHasKey( 'wp_id', $properties ); $this->assertArrayHasKey( 'has_theme_file', $properties ); + $this->assertArrayHasKey( 'author', $properties ); } protected function find_and_normalize_template_by_id( $templates, $id ) { diff --git a/tests/qunit/fixtures/wp-api-generated.js b/tests/qunit/fixtures/wp-api-generated.js index 3c6f4906af686..5d36b184abca2 100644 --- a/tests/qunit/fixtures/wp-api-generated.js +++ b/tests/qunit/fixtures/wp-api-generated.js @@ -5117,6 +5117,11 @@ mockedApiResponse.Schema = { "private" ], "required": false + }, + "author": { + "description": "The ID for the author of the template.", + "type": "integer", + "required": false } } } @@ -5262,6 +5267,11 @@ mockedApiResponse.Schema = { "private" ], "required": false + }, + "author": { + "description": "The ID for the author of the template.", + "type": "integer", + "required": false } } }, @@ -5571,6 +5581,11 @@ mockedApiResponse.Schema = { "private" ], "required": false + }, + "author": { + "description": "The ID for the author of the template.", + "type": "integer", + "required": false } } } @@ -5750,6 +5765,11 @@ mockedApiResponse.Schema = { ], "required": false }, + "author": { + "description": "The ID for the author of the template.", + "type": "integer", + "required": false + }, "area": { "description": "Where the template part is intended for use (header, footer, etc.)", "type": "string", @@ -5900,6 +5920,11 @@ mockedApiResponse.Schema = { ], "required": false }, + "author": { + "description": "The ID for the author of the template.", + "type": "integer", + "required": false + }, "area": { "description": "Where the template part is intended for use (header, footer, etc.)", "type": "string", @@ -6214,6 +6239,11 @@ mockedApiResponse.Schema = { ], "required": false }, + "author": { + "description": "The ID for the author of the template.", + "type": "integer", + "required": false + }, "area": { "description": "Where the template part is intended for use (header, footer, etc.)", "type": "string", From 0095e94fcf3867e644ea887628963a60480aa215 Mon Sep 17 00:00:00 2001 From: Daniel Richards Date: Thu, 25 Nov 2021 10:57:46 +0800 Subject: [PATCH 04/30] Fix linting issue --- .../rest-api/endpoints/class-wp-rest-templates-controller.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/rest-api/endpoints/class-wp-rest-templates-controller.php b/src/wp-includes/rest-api/endpoints/class-wp-rest-templates-controller.php index e75273188c232..8a27e12fa0e90 100644 --- a/src/wp-includes/rest-api/endpoints/class-wp-rest-templates-controller.php +++ b/src/wp-includes/rest-api/endpoints/class-wp-rest-templates-controller.php @@ -780,7 +780,7 @@ public function get_item_schema() { 'context' => array( 'embed', 'view', 'edit' ), 'readonly' => true, ), - 'author' => array ( + 'author' => array( 'description' => __( 'The ID for the author of the template.' ), 'type' => 'integer', 'context' => array( 'view', 'edit', 'embed' ), From 39e5f9181012442973b80000e9cfadd3818f0311 Mon Sep 17 00:00:00 2001 From: Daniel Richards Date: Thu, 25 Nov 2021 16:02:00 +0800 Subject: [PATCH 05/30] Add origin field to templates --- src/wp-includes/block-template-utils.php | 4 ++++ src/wp-includes/class-wp-block-template.php | 11 +++++++++++ .../class-wp-rest-templates-controller.php | 13 +++++++++++++ 3 files changed, 28 insertions(+) diff --git a/src/wp-includes/block-template-utils.php b/src/wp-includes/block-template-utils.php index 7cf41c37ddc75..83d392899ce5c 100644 --- a/src/wp-includes/block-template-utils.php +++ b/src/wp-includes/block-template-utils.php @@ -503,6 +503,9 @@ function _build_block_template_result_from_post( $post ) { $has_theme_file = wp_get_theme()->get_stylesheet() === $theme && null !== _get_block_template_file( $post->post_type, $post->post_name ); + + $origin = get_post_meta( $post->ID, 'origin', true ); + $template = new WP_Block_Template(); $template->wp_id = $post->ID; $template->id = $theme . '//' . $post->post_name; @@ -510,6 +513,7 @@ function _build_block_template_result_from_post( $post ) { $template->content = $post->post_content; $template->slug = $post->post_name; $template->source = 'custom'; + $template->origin = ! empty( $origin ) ? $origin : null; $template->type = $post->post_type; $template->description = $post->post_excerpt; $template->title = $post->post_title; diff --git a/src/wp-includes/class-wp-block-template.php b/src/wp-includes/class-wp-block-template.php index 9a54b4d97d597..d2f3c331aec95 100644 --- a/src/wp-includes/class-wp-block-template.php +++ b/src/wp-includes/class-wp-block-template.php @@ -78,6 +78,17 @@ class WP_Block_Template { */ public $source = 'theme'; + + /** + * Origin of the content when the content has been customized. + * When customized, origin takes on the value of source and source becomes + * 'custom'. + * + * @since 5.9.0 + * @var string + */ + public $origin; + /** * Post Id. * diff --git a/src/wp-includes/rest-api/endpoints/class-wp-rest-templates-controller.php b/src/wp-includes/rest-api/endpoints/class-wp-rest-templates-controller.php index 8a27e12fa0e90..97604512a9734 100644 --- a/src/wp-includes/rest-api/endpoints/class-wp-rest-templates-controller.php +++ b/src/wp-includes/rest-api/endpoints/class-wp-rest-templates-controller.php @@ -422,6 +422,9 @@ protected function prepare_item_for_database( $request ) { $changes->tax_input = array( 'wp_theme' => $template->theme, ); + $changes->meta_input = array( + 'origin' => $template->source + ); } else { $changes->post_name = $template->slug; $changes->ID = $template->wp_id; @@ -528,6 +531,10 @@ public function prepare_item_for_response( $item, $request ) { // phpcs:ignore V $data['source'] = $template->source; } + if ( rest_is_field_included( 'origin', $fields ) ) { + $data['origin'] = $template->origin; + } + if ( rest_is_field_included( 'type', $fields ) ) { $data['type'] = $template->type; } @@ -717,6 +724,12 @@ public function get_item_schema() { 'context' => array( 'embed', 'view', 'edit' ), 'readonly' => true, ), + 'origin' => array( + 'description' => __( 'Source of a customized template' ), + 'type' => 'string', + 'context' => array( 'embed', 'view', 'edit' ), + 'readonly' => true, + ), 'content' => array( 'description' => __( 'Content of template.' ), 'type' => array( 'object', 'string' ), From 11e1a10496402d18c6aefaebe997a60806c1e809 Mon Sep 17 00:00:00 2001 From: Daniel Richards Date: Thu, 25 Nov 2021 16:46:33 +0800 Subject: [PATCH 06/30] Handle errors from `prepare_item_for_database` in REST templates controller --- .../endpoints/class-wp-rest-templates-controller.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/wp-includes/rest-api/endpoints/class-wp-rest-templates-controller.php b/src/wp-includes/rest-api/endpoints/class-wp-rest-templates-controller.php index 97604512a9734..9dbae2c658116 100644 --- a/src/wp-includes/rest-api/endpoints/class-wp-rest-templates-controller.php +++ b/src/wp-includes/rest-api/endpoints/class-wp-rest-templates-controller.php @@ -244,6 +244,10 @@ public function update_item( $request ) { $changes = $this->prepare_item_for_database( $request ); + if ( is_wp_error( $changes ) ) { + return $changes; + } + if ( 'custom' === $template->source ) { $result = wp_update_post( wp_slash( (array) $changes ), true ); } else { @@ -294,6 +298,11 @@ public function create_item_permissions_check( $request ) { */ public function create_item( $request ) { $prepared_post = $this->prepare_item_for_database( $request ); + + if ( is_wp_error( $prepared_post ) ) { + return $prepared_post; + } + $prepared_post->post_name = $request['slug']; $post_id = wp_insert_post( wp_slash( (array) $prepared_post ), true ); if ( is_wp_error( $post_id ) ) { From 8888852836dcfedaa01a9c3cea6cc9c0f70afbfc Mon Sep 17 00:00:00 2001 From: Daniel Richards Date: Thu, 25 Nov 2021 16:46:52 +0800 Subject: [PATCH 07/30] Update tests to support origin --- .../tests/rest-api/wpRestTemplatesController.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/tests/phpunit/tests/rest-api/wpRestTemplatesController.php b/tests/phpunit/tests/rest-api/wpRestTemplatesController.php index d082d6a809509..9ea7aa01ded26 100644 --- a/tests/phpunit/tests/rest-api/wpRestTemplatesController.php +++ b/tests/phpunit/tests/rest-api/wpRestTemplatesController.php @@ -53,7 +53,6 @@ public static function wpTearDownAfterClass() { wp_delete_post( self::$post->ID ); } - public function test_register_routes() { $routes = rest_get_server()->get_routes(); $this->assertArrayHasKey( '/wp/v2/templates', $routes ); @@ -93,6 +92,7 @@ public function test_get_items() { 'theme' => 'default', 'slug' => 'my_template', 'source' => 'custom', + 'origin' => null, 'type' => 'wp_template', 'description' => 'Description of my template.', 'title' => array( @@ -135,6 +135,7 @@ public function test_get_item() { 'theme' => 'default', 'slug' => 'my_template', 'source' => 'custom', + 'origin' => null, 'type' => 'wp_template', 'description' => 'Description of my template.', 'title' => array( @@ -180,6 +181,7 @@ public function test_create_item() { ), 'slug' => 'my_custom_template', 'source' => 'custom', + 'origin' => null, 'type' => 'wp_template', 'description' => 'Just a description', 'title' => array( @@ -228,6 +230,7 @@ public function test_create_item_raw() { ), 'slug' => 'my_custom_template_raw', 'source' => 'custom', + 'origin' => null, 'type' => 'wp_template', 'description' => 'Just a description', 'title' => array( @@ -251,7 +254,7 @@ public function test_create_item_invalid_author() { 'description' => 'Just a description', 'title' => 'My Template', 'content' => 'Content', - 'author' => -999, + 'author' => 99999, ) ); $response = rest_get_server()->dispatch( $request ); @@ -392,13 +395,14 @@ public function test_get_item_schema() { $response = rest_get_server()->dispatch( $request ); $data = $response->get_data(); $properties = $data['schema']['properties']; - $this->assertCount( 12, $properties ); + $this->assertCount( 13, $properties ); $this->assertArrayHasKey( 'id', $properties ); $this->assertArrayHasKey( 'description', $properties ); $this->assertArrayHasKey( 'slug', $properties ); $this->assertArrayHasKey( 'theme', $properties ); $this->assertArrayHasKey( 'type', $properties ); $this->assertArrayHasKey( 'source', $properties ); + $this->assertArrayHasKey( 'origin', $properties ); $this->assertArrayHasKey( 'content', $properties ); $this->assertArrayHasKey( 'title', $properties ); $this->assertArrayHasKey( 'description', $properties ); From 63d008a72cff9a0ccc918733fa5dd96b7975900e Mon Sep 17 00:00:00 2001 From: Daniel Richards Date: Thu, 25 Nov 2021 17:28:55 +0800 Subject: [PATCH 08/30] Address review feedback --- src/wp-includes/block-template-utils.php | 3 +-- src/wp-includes/class-wp-block-template.php | 4 +++- .../rest-api/endpoints/class-wp-rest-templates-controller.php | 2 +- tests/phpunit/tests/rest-api/wpRestTemplatesController.php | 2 +- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/wp-includes/block-template-utils.php b/src/wp-includes/block-template-utils.php index 83d392899ce5c..923b46b740de8 100644 --- a/src/wp-includes/block-template-utils.php +++ b/src/wp-includes/block-template-utils.php @@ -503,7 +503,6 @@ function _build_block_template_result_from_post( $post ) { $has_theme_file = wp_get_theme()->get_stylesheet() === $theme && null !== _get_block_template_file( $post->post_type, $post->post_name ); - $origin = get_post_meta( $post->ID, 'origin', true ); $template = new WP_Block_Template(); @@ -520,7 +519,7 @@ function _build_block_template_result_from_post( $post ) { $template->status = $post->post_status; $template->has_theme_file = $has_theme_file; $template->is_custom = true; - $template->post_author = $post->post_author; + $template->author = $post->post_author; if ( 'wp_template' === $post->post_type && isset( $default_template_types[ $template->slug ] ) ) { $template->is_custom = false; diff --git a/src/wp-includes/class-wp-block-template.php b/src/wp-includes/class-wp-block-template.php index d2f3c331aec95..fab386b04419e 100644 --- a/src/wp-includes/class-wp-block-template.php +++ b/src/wp-includes/class-wp-block-template.php @@ -125,8 +125,10 @@ class WP_Block_Template { /** * Author. * + * A value of 0 means no author. + * * @since 5.9.0 * @var int */ - public $post_author = 0; + public $author; } diff --git a/src/wp-includes/rest-api/endpoints/class-wp-rest-templates-controller.php b/src/wp-includes/rest-api/endpoints/class-wp-rest-templates-controller.php index 9dbae2c658116..aef97067d9158 100644 --- a/src/wp-includes/rest-api/endpoints/class-wp-rest-templates-controller.php +++ b/src/wp-includes/rest-api/endpoints/class-wp-rest-templates-controller.php @@ -582,7 +582,7 @@ public function prepare_item_for_response( $item, $request ) { // phpcs:ignore V } if ( rest_is_field_included( 'author', $fields ) ) { - $data['author'] = (int) $template->post_author; + $data['author'] = (int) $template->author; } if ( rest_is_field_included( 'area', $fields ) && 'wp_template_part' === $template->type ) { diff --git a/tests/phpunit/tests/rest-api/wpRestTemplatesController.php b/tests/phpunit/tests/rest-api/wpRestTemplatesController.php index 9ea7aa01ded26..734d7a45216ea 100644 --- a/tests/phpunit/tests/rest-api/wpRestTemplatesController.php +++ b/tests/phpunit/tests/rest-api/wpRestTemplatesController.php @@ -254,7 +254,7 @@ public function test_create_item_invalid_author() { 'description' => 'Just a description', 'title' => 'My Template', 'content' => 'Content', - 'author' => 99999, + 'author' => -1, ) ); $response = rest_get_server()->dispatch( $request ); From 51c768e43bfab0da9676583e97471af2aefbb891 Mon Sep 17 00:00:00 2001 From: Daniel Richards Date: Thu, 25 Nov 2021 18:53:03 +0800 Subject: [PATCH 09/30] Linting fix --- .../rest-api/endpoints/class-wp-rest-templates-controller.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/rest-api/endpoints/class-wp-rest-templates-controller.php b/src/wp-includes/rest-api/endpoints/class-wp-rest-templates-controller.php index aef97067d9158..35434920036ea 100644 --- a/src/wp-includes/rest-api/endpoints/class-wp-rest-templates-controller.php +++ b/src/wp-includes/rest-api/endpoints/class-wp-rest-templates-controller.php @@ -432,7 +432,7 @@ protected function prepare_item_for_database( $request ) { 'wp_theme' => $template->theme, ); $changes->meta_input = array( - 'origin' => $template->source + 'origin' => $template->source, ); } else { $changes->post_name = $template->slug; From 89ea62cb027a913b263a504b56c224c188f4e071 Mon Sep 17 00:00:00 2001 From: Daniel Richards Date: Mon, 29 Nov 2021 09:26:42 +0800 Subject: [PATCH 10/30] Remove empty lines --- src/wp-includes/class-wp-block-template.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/wp-includes/class-wp-block-template.php b/src/wp-includes/class-wp-block-template.php index fab386b04419e..1d73d281fe762 100644 --- a/src/wp-includes/class-wp-block-template.php +++ b/src/wp-includes/class-wp-block-template.php @@ -69,7 +69,6 @@ class WP_Block_Template { */ public $description = ''; - /** * Source of the content. `theme` and `custom` is used for now. * @@ -78,7 +77,6 @@ class WP_Block_Template { */ public $source = 'theme'; - /** * Origin of the content when the content has been customized. * When customized, origin takes on the value of source and source becomes From 0b939f4825eb6610cc897a4e4c431b5e1f924df2 Mon Sep 17 00:00:00 2001 From: Robert Anderson Date: Mon, 29 Nov 2021 16:22:16 +1100 Subject: [PATCH 11/30] Update @wordpress packages --- package-lock.json | 268 +++++++++--------- package.json | 34 +-- .../assets/script-loader-packages.php | 2 +- src/wp-includes/blocks/calendar.php | 4 +- src/wp-includes/blocks/navigation.php | 142 +++++++++- src/wp-includes/blocks/navigation/block.json | 2 +- .../blocks/navigation/view.asset.php | 2 +- .../blocks/navigation/view.min.asset.php | 2 +- src/wp-includes/blocks/page-list.php | 5 + src/wp-includes/blocks/pattern/block.json | 2 +- src/wp-includes/blocks/post-terms/block.json | 2 +- src/wp-includes/blocks/query-title/block.json | 2 +- src/wp-includes/blocks/site-logo/block.json | 2 +- .../blocks/site-logo/editor-rtl.css | 4 +- .../blocks/site-logo/editor-rtl.min.css | 2 +- src/wp-includes/blocks/site-logo/editor.css | 4 +- .../blocks/site-logo/editor.min.css | 2 +- .../blocks/site-tagline/block.json | 2 +- src/wp-includes/blocks/site-title/block.json | 2 +- src/wp-includes/blocks/template-part.php | 3 +- .../blocks/template-part/block.json | 3 +- 21 files changed, 307 insertions(+), 184 deletions(-) diff --git a/package-lock.json b/package-lock.json index 25c2a9e25e106..2ed04bc573d21 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1452,9 +1452,9 @@ "integrity": "sha512-igX9a37DR2ZPGYtV6suZ6whr8pTFtyHL3K/oLUotxpSVO2ASaprmAe2Dkq7tBo7CRY7MMDrAa9nuQP9/YG8FxQ==" }, "@emotion/react": { - "version": "11.6.0", - "resolved": "https://registry.npmjs.org/@emotion/react/-/react-11.6.0.tgz", - "integrity": "sha512-23MnRZFBN9+D1lHXC5pD6z4X9yhPxxtHr6f+iTGz6Fv6Rda0GdefPrsHL7otsEf+//7uqCdT5QtHeRxHCERzuw==", + "version": "11.7.0", + "resolved": "https://registry.npmjs.org/@emotion/react/-/react-11.7.0.tgz", + "integrity": "sha512-WL93hf9+/2s3cA1JVJlz8+Uy6p6QWukqQFOm2OZO5ki51hfucHMOmbSjiyC3t2Y4RI8XUmBoepoc/24ny/VBbA==", "requires": { "@babel/runtime": "^7.13.10", "@emotion/cache": "^11.6.0", @@ -2258,23 +2258,23 @@ "dev": true }, "@popperjs/core": { - "version": "2.10.2", - "resolved": "https://registry.npmjs.org/@popperjs/core/-/core-2.10.2.tgz", - "integrity": "sha512-IXf3XA7+XyN7CP9gGh/XB0UxVMlvARGEgGXLubFICsUMGz6Q+DU+i4gGlpOxTjKvXjkJDJC8YdqdKkDj9qZHEQ==" + "version": "2.11.0", + "resolved": "https://registry.npmjs.org/@popperjs/core/-/core-2.11.0.tgz", + "integrity": "sha512-zrsUxjLOKAzdewIDRWy9nsV1GQsKBCWaGwsZQlCgr6/q+vjyZhFgqedLfFBuI9anTPEUT4APq9Mu0SZBTzIcGQ==" }, "@react-spring/animated": { - "version": "9.3.0", - "resolved": "https://registry.npmjs.org/@react-spring/animated/-/animated-9.3.0.tgz", - "integrity": "sha512-QvuyW77eDvLhdJyO6FFldlWlvnuKK2cpOx4+Zr962RyT/0IO1tbNDRO6G1vM8va6mbv6tmfYmRGKmKYePN3kVg==", + "version": "9.3.1", + "resolved": "https://registry.npmjs.org/@react-spring/animated/-/animated-9.3.1.tgz", + "integrity": "sha512-23YaERZ++BwZ8F8PxPFqrpOwp/JZun1Pj6aHZtPAU42j5LycBRasT9XMw7Eyr7zNFhT+rl3R3wFfd4WX6Ax+UA==", "requires": { "@react-spring/shared": "~9.3.0", "@react-spring/types": "~9.3.0" } }, "@react-spring/core": { - "version": "9.3.0", - "resolved": "https://registry.npmjs.org/@react-spring/core/-/core-9.3.0.tgz", - "integrity": "sha512-SZQOIX7wkIagmucAi7zxqGGIb9A60o9n5922UrWo8Kl3FdG7FgrNwqr0kOI43/pMFeL70/PXwFhBatB03N5ctw==", + "version": "9.3.1", + "resolved": "https://registry.npmjs.org/@react-spring/core/-/core-9.3.1.tgz", + "integrity": "sha512-8rmfmEHLHGtF1CUiXRn64YJqsXNxv2cGX8oNnBnsuoE33c48Zc34t2VIMB4R9q5zwIUCvDBGfiEenA8ZAPxqOQ==", "requires": { "@react-spring/animated": "~9.3.0", "@react-spring/shared": "~9.3.0", @@ -2282,28 +2282,28 @@ } }, "@react-spring/rafz": { - "version": "9.3.0", - "resolved": "https://registry.npmjs.org/@react-spring/rafz/-/rafz-9.3.0.tgz", - "integrity": "sha512-FD04d2TNb3xOZ6+04qwDmC3d0H4X6gvhsxU71/nSm4PPYRqFzZEolcVPmrHlbGzco3bvXKI+Kp2pIrpXLPUJFA==" + "version": "9.3.1", + "resolved": "https://registry.npmjs.org/@react-spring/rafz/-/rafz-9.3.1.tgz", + "integrity": "sha512-fEBMCarGVl+/2kdO+g6Zig4F+3ymwmcGN8S71gb1c7Cbbxb87kviPz8EhshfIHoiLeJPGlqwcuGbxNmZbBamvA==" }, "@react-spring/shared": { - "version": "9.3.0", - "resolved": "https://registry.npmjs.org/@react-spring/shared/-/shared-9.3.0.tgz", - "integrity": "sha512-7ZFY2Blu/wxbLGcYvQavyLUVi9bK/is1bsn11qZ9AaZb4iucRyIf2jgjBfKZFCq4qgi7S/7QmDQG7sucUyLELg==", + "version": "9.3.1", + "resolved": "https://registry.npmjs.org/@react-spring/shared/-/shared-9.3.1.tgz", + "integrity": "sha512-jhPpxzURGo6Nty90ex1lkxmZae7w/VAbnGmb/nXcYoZwSoNR+W2aAd00iXsh2ZGz6MgoJOsc495JeG3uC7Am8A==", "requires": { "@react-spring/rafz": "~9.3.0", "@react-spring/types": "~9.3.0" } }, "@react-spring/types": { - "version": "9.3.0", - "resolved": "https://registry.npmjs.org/@react-spring/types/-/types-9.3.0.tgz", - "integrity": "sha512-q4cDr2RSPblXMD3Rxvk6qcC7nmhhfV2izEBP06hb8ZCXznA6qJirG3RMpi29kBtEQiw1lWR59hAXKhauaPtbOA==" + "version": "9.3.1", + "resolved": "https://registry.npmjs.org/@react-spring/types/-/types-9.3.1.tgz", + "integrity": "sha512-W/YMJMX35XgGGzX0gKORBTwnvQ+1loDOFN3XlZkW5fgpEY+7VkRUpPyqPWXQr3n6lHrsLmHIGdpznqZi54ACTQ==" }, "@react-spring/web": { - "version": "9.3.0", - "resolved": "https://registry.npmjs.org/@react-spring/web/-/web-9.3.0.tgz", - "integrity": "sha512-OTAGKRdyz6fLRR1tABFyw9KMpytyATIndQrj0O6RG47GfjiInpf4+WZKxo763vpS7z1OlnkI81WLUm/sqOqAnA==", + "version": "9.3.1", + "resolved": "https://registry.npmjs.org/@react-spring/web/-/web-9.3.1.tgz", + "integrity": "sha512-sisZIgFGva/Z+xKWPSfXpukF0AP3kR9ALTxlHL87fVotMUCJX5vtH/YlVcywToEFwTHKt3MpI5Wy2M+vgVEeaw==", "requires": { "@react-spring/animated": "~9.3.0", "@react-spring/core": "~9.3.0", @@ -3529,21 +3529,21 @@ } }, "@wordpress/block-directory": { - "version": "3.0.11", - "resolved": "https://registry.npmjs.org/@wordpress/block-directory/-/block-directory-3.0.11.tgz", - "integrity": "sha512-zSFsm+yUcrgZSWQVXWPd8jp+K1Lf/S5JITUp1cKReae9hhHgvmEpQydmWNGgjIadeALpcka5j0JIe2AJAqGeBA==", + "version": "3.0.12", + "resolved": "https://registry.npmjs.org/@wordpress/block-directory/-/block-directory-3.0.12.tgz", + "integrity": "sha512-nZqGheHJ1lapCacPgz+pnk2Rb7i6EmJHLSsAh06Om9lXo3ARph1bhnHlS7KME0zADtam7uHteKYE8oSn0jTLcg==", "requires": { "@babel/runtime": "^7.16.0", "@wordpress/a11y": "^3.2.4", "@wordpress/api-fetch": "^5.2.6", - "@wordpress/block-editor": "^8.0.5", + "@wordpress/block-editor": "^8.0.6", "@wordpress/blocks": "^11.1.4", - "@wordpress/components": "^19.0.5", + "@wordpress/components": "^19.1.0", "@wordpress/compose": "^5.0.6", - "@wordpress/core-data": "^4.0.7", + "@wordpress/core-data": "^4.0.8", "@wordpress/data": "^6.1.4", - "@wordpress/edit-post": "^5.0.11", - "@wordpress/editor": "^12.0.8", + "@wordpress/edit-post": "^5.0.12", + "@wordpress/editor": "^12.0.9", "@wordpress/element": "^4.0.4", "@wordpress/hooks": "^3.2.2", "@wordpress/html-entities": "^3.2.3", @@ -3556,9 +3556,9 @@ } }, "@wordpress/block-editor": { - "version": "8.0.5", - "resolved": "https://registry.npmjs.org/@wordpress/block-editor/-/block-editor-8.0.5.tgz", - "integrity": "sha512-s5kmYFizQlf2K2JXaI5Iw3Zo8mYa6sCw0BMDt9Z+67NNyAvsbf9jPA6Uw80yRsCVcjz+cYcgHv3+Tcz9a6VrUw==", + "version": "8.0.6", + "resolved": "https://registry.npmjs.org/@wordpress/block-editor/-/block-editor-8.0.6.tgz", + "integrity": "sha512-t5AL0nQuakopOoH2RgVflGvBwik+IvqRd2UOQsjVNeCIZLpbI4up9QYHtBidoqu4Zye6aGsL5LMDt7bWmWhn9A==", "requires": { "@babel/runtime": "^7.16.0", "@react-spring/web": "^9.2.4", @@ -3567,7 +3567,7 @@ "@wordpress/blob": "^3.2.2", "@wordpress/block-serialization-default-parser": "^4.2.3", "@wordpress/blocks": "^11.1.4", - "@wordpress/components": "^19.0.5", + "@wordpress/components": "^19.1.0", "@wordpress/compose": "^5.0.6", "@wordpress/data": "^6.1.4", "@wordpress/deprecated": "^3.2.3", @@ -3603,20 +3603,20 @@ } }, "@wordpress/block-library": { - "version": "6.0.9", - "resolved": "https://registry.npmjs.org/@wordpress/block-library/-/block-library-6.0.9.tgz", - "integrity": "sha512-5etkM+WKn7jUlZsSiuA6jVBFlBvxn5szu5Shr6GbLnuUwh2pEhj/BY/aqXcyjNXcoUT2WmURcCPBjclgm2CvBA==", + "version": "6.0.10", + "resolved": "https://registry.npmjs.org/@wordpress/block-library/-/block-library-6.0.10.tgz", + "integrity": "sha512-4FVKwUU+ed9oOpk8v8iHq2ZZvmW3AN/dzZ9AAv8ywqoU8IEvw0WjSI87WABT9414w63wE275X7M5Q2eja44ahg==", "requires": { "@babel/runtime": "^7.16.0", "@wordpress/a11y": "^3.2.4", "@wordpress/api-fetch": "^5.2.6", "@wordpress/autop": "^3.2.3", "@wordpress/blob": "^3.2.2", - "@wordpress/block-editor": "^8.0.5", + "@wordpress/block-editor": "^8.0.6", "@wordpress/blocks": "^11.1.4", - "@wordpress/components": "^19.0.5", + "@wordpress/components": "^19.1.0", "@wordpress/compose": "^5.0.6", - "@wordpress/core-data": "^4.0.7", + "@wordpress/core-data": "^4.0.8", "@wordpress/data": "^6.1.4", "@wordpress/date": "^4.2.3", "@wordpress/deprecated": "^3.2.3", @@ -3627,14 +3627,14 @@ "@wordpress/html-entities": "^3.2.3", "@wordpress/i18n": "^4.2.4", "@wordpress/icons": "^6.1.1", - "@wordpress/interface": "^4.1.7", + "@wordpress/interface": "^4.1.8", "@wordpress/is-shallow-equal": "^4.2.1", "@wordpress/keycodes": "^3.2.4", "@wordpress/notices": "^3.2.7", "@wordpress/primitives": "^3.0.4", - "@wordpress/reusable-blocks": "^3.0.11", + "@wordpress/reusable-blocks": "^3.0.12", "@wordpress/rich-text": "^5.0.6", - "@wordpress/server-side-render": "^3.0.9", + "@wordpress/server-side-render": "^3.0.10", "@wordpress/url": "^3.3.1", "@wordpress/viewport": "^4.0.6", "classnames": "^2.3.1", @@ -3689,9 +3689,9 @@ "dev": true }, "@wordpress/components": { - "version": "19.0.5", - "resolved": "https://registry.npmjs.org/@wordpress/components/-/components-19.0.5.tgz", - "integrity": "sha512-xtXTpPvmByVPjIWWo/v8ZzVsEtx9dq6bsdOOkDTnFFUXTcgxJb12RmgbsDR+E/L+z9IwuGxLwt08EGrWWvKF6w==", + "version": "19.1.0", + "resolved": "https://registry.npmjs.org/@wordpress/components/-/components-19.1.0.tgz", + "integrity": "sha512-34hYwy3vtsWHdFFvE6cPlV6KxKMa4uaY2dvZlJ++QMVA24geGRfwtM1ZvGgs9fVjo0koC332sN2LGS7wx6aXew==", "requires": { "@babel/runtime": "^7.16.0", "@emotion/cache": "^11.4.0", @@ -3755,9 +3755,9 @@ } }, "@wordpress/core-data": { - "version": "4.0.7", - "resolved": "https://registry.npmjs.org/@wordpress/core-data/-/core-data-4.0.7.tgz", - "integrity": "sha512-N9za/cxd3KiZsHZj5kcD4zYcPgv7PdCQQx0GB5rBzceYzgON/WG3Y/QhoFHFwEw5OOpBIcSKehV975VByRD+qA==", + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/@wordpress/core-data/-/core-data-4.0.8.tgz", + "integrity": "sha512-nv7lXFU+7kdPhoD/Cz5oi6Xu1ODPRDwoMYYpIPB2nEfLi6foleDxhUuib9unwAtvUKNtQnrClDesys7l6pXMwQ==", "requires": { "@babel/runtime": "^7.16.0", "@wordpress/api-fetch": "^5.2.6", @@ -3785,30 +3785,30 @@ } }, "@wordpress/customize-widgets": { - "version": "2.0.11", - "resolved": "https://registry.npmjs.org/@wordpress/customize-widgets/-/customize-widgets-2.0.11.tgz", - "integrity": "sha512-3HSHChnMtT7JCXaITzDgM0zwbDopL3CNofhCJf/lQR//msiLiFK2MzjZrgJdQXTzVcPN7fXgIsf5cFJeHsuADg==", + "version": "2.0.12", + "resolved": "https://registry.npmjs.org/@wordpress/customize-widgets/-/customize-widgets-2.0.12.tgz", + "integrity": "sha512-83/LFQo7UJ8X2B+yiByRJKWHJV4jpfHsT7RZDg5Vd06bR/UXbM7d8TCCYDvUgn0HuadGM+XcFxxhfYUTm68yHA==", "requires": { "@babel/runtime": "^7.16.0", "@wordpress/a11y": "^3.2.4", - "@wordpress/block-editor": "^8.0.5", - "@wordpress/block-library": "^6.0.9", + "@wordpress/block-editor": "^8.0.6", + "@wordpress/block-library": "^6.0.10", "@wordpress/blocks": "^11.1.4", - "@wordpress/components": "^19.0.5", + "@wordpress/components": "^19.1.0", "@wordpress/compose": "^5.0.6", - "@wordpress/core-data": "^4.0.7", + "@wordpress/core-data": "^4.0.8", "@wordpress/data": "^6.1.4", "@wordpress/dom": "^3.2.7", "@wordpress/element": "^4.0.4", "@wordpress/hooks": "^3.2.2", "@wordpress/i18n": "^4.2.4", "@wordpress/icons": "^6.1.1", - "@wordpress/interface": "^4.1.7", + "@wordpress/interface": "^4.1.8", "@wordpress/is-shallow-equal": "^4.2.1", "@wordpress/keyboard-shortcuts": "^3.0.6", "@wordpress/keycodes": "^3.2.4", "@wordpress/media-utils": "^3.0.5", - "@wordpress/widgets": "^2.0.11", + "@wordpress/widgets": "^2.0.12", "classnames": "^2.3.1", "lodash": "^4.17.21" } @@ -3937,27 +3937,27 @@ } }, "@wordpress/edit-post": { - "version": "5.0.11", - "resolved": "https://registry.npmjs.org/@wordpress/edit-post/-/edit-post-5.0.11.tgz", - "integrity": "sha512-UVFve7ETYdJjDm2TgAJKOxiRmoTYNu75fkbvTluxnKbvWKDXzY0QCpw47JY4g+JmYBRda6ZGV51eY5P5G5BZ6Q==", + "version": "5.0.12", + "resolved": "https://registry.npmjs.org/@wordpress/edit-post/-/edit-post-5.0.12.tgz", + "integrity": "sha512-A2nt6LXdVcVqUay08P1W0J2t9vUmoxOkZPH4qKhBhUlMfmHKtyqMBiNQFui9drPMWVUb5HB3zsUmlAWsv429Vw==", "requires": { "@babel/runtime": "^7.16.0", "@wordpress/a11y": "^3.2.4", "@wordpress/api-fetch": "^5.2.6", - "@wordpress/block-editor": "^8.0.5", - "@wordpress/block-library": "^6.0.9", + "@wordpress/block-editor": "^8.0.6", + "@wordpress/block-library": "^6.0.10", "@wordpress/blocks": "^11.1.4", - "@wordpress/components": "^19.0.5", + "@wordpress/components": "^19.1.0", "@wordpress/compose": "^5.0.6", - "@wordpress/core-data": "^4.0.7", + "@wordpress/core-data": "^4.0.8", "@wordpress/data": "^6.1.4", "@wordpress/data-controls": "^2.2.7", - "@wordpress/editor": "^12.0.8", + "@wordpress/editor": "^12.0.9", "@wordpress/element": "^4.0.4", "@wordpress/hooks": "^3.2.2", "@wordpress/i18n": "^4.2.4", "@wordpress/icons": "^6.1.1", - "@wordpress/interface": "^4.1.7", + "@wordpress/interface": "^4.1.8", "@wordpress/keyboard-shortcuts": "^3.0.6", "@wordpress/keycodes": "^3.2.4", "@wordpress/media-utils": "^3.0.5", @@ -3982,35 +3982,37 @@ } }, "@wordpress/edit-site": { - "version": "3.0.11", - "resolved": "https://registry.npmjs.org/@wordpress/edit-site/-/edit-site-3.0.11.tgz", - "integrity": "sha512-jwCXMVDg6ucNOur1lpQBDlXNuUv6RzpOK/I2rfhw9Cqv0DyFfWSL6NIxMZFuqfyhCeqnUaz/GT/CVgghx5Ssvw==", + "version": "3.0.12", + "resolved": "https://registry.npmjs.org/@wordpress/edit-site/-/edit-site-3.0.12.tgz", + "integrity": "sha512-Uxn7mLNCdvND/4ZuMKiNSBSD09hDAdjYsCZDAnZ3HE0lc1DrCQFI8lF911JSYWY2fmiTbAhqGBKHOci7XK4b3A==", "requires": { "@babel/runtime": "^7.16.0", "@wordpress/a11y": "^3.2.4", "@wordpress/api-fetch": "^5.2.6", - "@wordpress/block-editor": "^8.0.5", - "@wordpress/block-library": "^6.0.9", + "@wordpress/block-editor": "^8.0.6", + "@wordpress/block-library": "^6.0.10", "@wordpress/blocks": "^11.1.4", - "@wordpress/components": "^19.0.5", + "@wordpress/components": "^19.1.0", "@wordpress/compose": "^5.0.6", - "@wordpress/core-data": "^4.0.7", + "@wordpress/core-data": "^4.0.8", "@wordpress/data": "^6.1.4", "@wordpress/data-controls": "^2.2.7", - "@wordpress/editor": "^12.0.8", + "@wordpress/editor": "^12.0.9", "@wordpress/element": "^4.0.4", "@wordpress/hooks": "^3.2.2", "@wordpress/html-entities": "^3.2.3", "@wordpress/i18n": "^4.2.4", "@wordpress/icons": "^6.1.1", - "@wordpress/interface": "^4.1.7", + "@wordpress/interface": "^4.1.8", "@wordpress/keyboard-shortcuts": "^3.0.6", "@wordpress/keycodes": "^3.2.4", "@wordpress/media-utils": "^3.0.5", "@wordpress/notices": "^3.2.7", "@wordpress/plugins": "^4.0.6", "@wordpress/primitives": "^3.0.4", + "@wordpress/reusable-blocks": "^3.0.12", "@wordpress/url": "^3.3.1", + "@wordpress/viewport": "^4.0.6", "classnames": "^2.3.1", "downloadjs": "^1.4.7", "file-saver": "^2.0.2", @@ -4020,35 +4022,35 @@ } }, "@wordpress/edit-widgets": { - "version": "3.1.6", - "resolved": "https://registry.npmjs.org/@wordpress/edit-widgets/-/edit-widgets-3.1.6.tgz", - "integrity": "sha512-NuVehrAajzThQLh313FiyhjfIFpCwolyPjndj+urUp+iCKpLTMKTKSrZpC6tQsfycrmpPrnL/RiWsNeAV1zGMg==", + "version": "3.1.7", + "resolved": "https://registry.npmjs.org/@wordpress/edit-widgets/-/edit-widgets-3.1.7.tgz", + "integrity": "sha512-FwbaqGqGazNSfZth5HG6Kl6l5yCiyL/+h4dSGQrplMxvNlQDC8Sx2x/ti/iH9f82+FOmIbAGvJtZaeRNOI7WZw==", "requires": { "@babel/runtime": "^7.16.0", "@wordpress/a11y": "^3.2.4", "@wordpress/api-fetch": "^5.2.6", - "@wordpress/block-editor": "^8.0.5", - "@wordpress/block-library": "^6.0.9", + "@wordpress/block-editor": "^8.0.6", + "@wordpress/block-library": "^6.0.10", "@wordpress/blocks": "^11.1.4", - "@wordpress/components": "^19.0.5", + "@wordpress/components": "^19.1.0", "@wordpress/compose": "^5.0.6", - "@wordpress/core-data": "^4.0.7", + "@wordpress/core-data": "^4.0.8", "@wordpress/data": "^6.1.4", "@wordpress/dom": "^3.2.7", "@wordpress/element": "^4.0.4", "@wordpress/hooks": "^3.2.2", "@wordpress/i18n": "^4.2.4", "@wordpress/icons": "^6.1.1", - "@wordpress/interface": "^4.1.7", + "@wordpress/interface": "^4.1.8", "@wordpress/keyboard-shortcuts": "^3.0.6", "@wordpress/keycodes": "^3.2.4", "@wordpress/media-utils": "^3.0.5", "@wordpress/notices": "^3.2.7", "@wordpress/plugins": "^4.0.6", - "@wordpress/reusable-blocks": "^3.0.11", - "@wordpress/server-side-render": "^3.0.9", + "@wordpress/reusable-blocks": "^3.0.12", + "@wordpress/server-side-render": "^3.0.10", "@wordpress/url": "^3.3.1", - "@wordpress/widgets": "^2.0.11", + "@wordpress/widgets": "^2.0.12", "classnames": "^2.3.1", "lodash": "^4.17.21", "rememo": "^3.0.0", @@ -4056,20 +4058,20 @@ } }, "@wordpress/editor": { - "version": "12.0.8", - "resolved": "https://registry.npmjs.org/@wordpress/editor/-/editor-12.0.8.tgz", - "integrity": "sha512-vEEHEH2Pkg/FzfgZqTZI6RhTcGrRwwgdnSrrJJMXQjKg3ieLpSuKZ2LaZEhfqY2ICTuZ/49A9pxOm6FzkQW8Xg==", + "version": "12.0.9", + "resolved": "https://registry.npmjs.org/@wordpress/editor/-/editor-12.0.9.tgz", + "integrity": "sha512-yzwkrrCJlgW3VR5xNqsSoLQztYgqqe20goJfRXF+43ZQBTNr0kUbHb3+xF4J/cd3WxqWYYPb2WeHcR65qrnYqw==", "requires": { "@babel/runtime": "^7.16.0", "@wordpress/a11y": "^3.2.4", "@wordpress/api-fetch": "^5.2.6", "@wordpress/autop": "^3.2.3", "@wordpress/blob": "^3.2.2", - "@wordpress/block-editor": "^8.0.5", + "@wordpress/block-editor": "^8.0.6", "@wordpress/blocks": "^11.1.4", - "@wordpress/components": "^19.0.5", + "@wordpress/components": "^19.1.0", "@wordpress/compose": "^5.0.6", - "@wordpress/core-data": "^4.0.7", + "@wordpress/core-data": "^4.0.8", "@wordpress/data": "^6.1.4", "@wordpress/data-controls": "^2.2.7", "@wordpress/date": "^4.2.3", @@ -4084,9 +4086,9 @@ "@wordpress/keycodes": "^3.2.4", "@wordpress/media-utils": "^3.0.5", "@wordpress/notices": "^3.2.7", - "@wordpress/reusable-blocks": "^3.0.11", + "@wordpress/reusable-blocks": "^3.0.12", "@wordpress/rich-text": "^5.0.6", - "@wordpress/server-side-render": "^3.0.9", + "@wordpress/server-side-render": "^3.0.10", "@wordpress/url": "^3.3.1", "@wordpress/wordcount": "^3.2.3", "classnames": "^2.3.1", @@ -4173,14 +4175,14 @@ } }, "@wordpress/format-library": { - "version": "3.0.11", - "resolved": "https://registry.npmjs.org/@wordpress/format-library/-/format-library-3.0.11.tgz", - "integrity": "sha512-RhEQtTDUjXJMNkSCL8v+l2/N8T8kizfSoaD84bbJbSU1sahUF7Cdxtlp06z374iTZDzIqZxtEftWRljJs/AqVA==", + "version": "3.0.12", + "resolved": "https://registry.npmjs.org/@wordpress/format-library/-/format-library-3.0.12.tgz", + "integrity": "sha512-gQzGsv63HwQrDNIQvxEC/xwR730Mv+VkSXvCfHip8dBL1cva4CHzrsnYbXGJuaQEEX7yOSv+IPLcrA8rTy2fzw==", "requires": { "@babel/runtime": "^7.16.0", "@wordpress/a11y": "^3.2.4", - "@wordpress/block-editor": "^8.0.5", - "@wordpress/components": "^19.0.5", + "@wordpress/block-editor": "^8.0.6", + "@wordpress/components": "^19.1.0", "@wordpress/compose": "^5.0.6", "@wordpress/data": "^6.1.4", "@wordpress/dom": "^3.2.7", @@ -4235,13 +4237,13 @@ } }, "@wordpress/interface": { - "version": "4.1.7", - "resolved": "https://registry.npmjs.org/@wordpress/interface/-/interface-4.1.7.tgz", - "integrity": "sha512-mXsTvVKfDctZ1Kkhto2NLCs8xi3cHFD7QU8OIuofgO8rKlQ4ro7+QTuu1N/SfGRnmTQTX0d1gUMzi4JwWp3nsA==", + "version": "4.1.8", + "resolved": "https://registry.npmjs.org/@wordpress/interface/-/interface-4.1.8.tgz", + "integrity": "sha512-bvvNJ0uuBozCSpRJx/MSQgC8ReH5dUL8pFJc4ky923xFwMjmOybkQbzf/A4uCiKeGkp0H9mL0VvenDkxBzmw4w==", "requires": { "@babel/runtime": "^7.16.0", "@wordpress/a11y": "^3.2.4", - "@wordpress/components": "^19.0.5", + "@wordpress/components": "^19.1.0", "@wordpress/compose": "^5.0.6", "@wordpress/data": "^6.1.4", "@wordpress/deprecated": "^3.2.3", @@ -4339,13 +4341,13 @@ } }, "@wordpress/list-reusable-blocks": { - "version": "3.0.9", - "resolved": "https://registry.npmjs.org/@wordpress/list-reusable-blocks/-/list-reusable-blocks-3.0.9.tgz", - "integrity": "sha512-elYJLYWWeMomiUlFmm/GHJrLvjOXGstUGNHVo6NkmnKi3crYc2QNKn+vHnFaXNLi7n1eG0QIUo4guInkyv224g==", + "version": "3.0.10", + "resolved": "https://registry.npmjs.org/@wordpress/list-reusable-blocks/-/list-reusable-blocks-3.0.10.tgz", + "integrity": "sha512-B8+5GWPRhRDryB44aTidVhe6zCUwSoWMiCzEJ6E9J84bh2P5EfTzQBtzyVBNZYxyn58ZViCW2cnt/yQFh85OrA==", "requires": { "@babel/runtime": "^7.16.0", "@wordpress/api-fetch": "^5.2.6", - "@wordpress/components": "^19.0.5", + "@wordpress/components": "^19.1.0", "@wordpress/compose": "^5.0.6", "@wordpress/element": "^4.0.4", "@wordpress/i18n": "^4.2.4", @@ -4383,12 +4385,12 @@ "dev": true }, "@wordpress/nux": { - "version": "5.0.9", - "resolved": "https://registry.npmjs.org/@wordpress/nux/-/nux-5.0.9.tgz", - "integrity": "sha512-HGQVQm/8YAyNCIDQRzwAQSikT4tkJ/Gf/4NU2LbQf45gk0vuPLlbXmlF/cA/AQdA8l8hKfE51SfETRRPIE63IA==", + "version": "5.0.10", + "resolved": "https://registry.npmjs.org/@wordpress/nux/-/nux-5.0.10.tgz", + "integrity": "sha512-W9WyfondJ9IGo9W0QShbP2RQbiCctK0Vx916SIBW/xMTux+nB04MaKkfQsuKFWMsMQGsUZHcv6j/uRVCrRpAyQ==", "requires": { "@babel/runtime": "^7.16.0", - "@wordpress/components": "^19.0.5", + "@wordpress/components": "^19.1.0", "@wordpress/compose": "^5.0.6", "@wordpress/data": "^6.1.4", "@wordpress/deprecated": "^3.2.3", @@ -4513,15 +4515,15 @@ } }, "@wordpress/reusable-blocks": { - "version": "3.0.11", - "resolved": "https://registry.npmjs.org/@wordpress/reusable-blocks/-/reusable-blocks-3.0.11.tgz", - "integrity": "sha512-5EQ+qrRDscEmILir+atYyZMgPOoHwZEYlxesRj1pEBO/dQX2tpZKt1W8SfkWSukRQYyqUby8z9sZ04ga+/Khlg==", + "version": "3.0.12", + "resolved": "https://registry.npmjs.org/@wordpress/reusable-blocks/-/reusable-blocks-3.0.12.tgz", + "integrity": "sha512-Q38sB3Lo3qHM6JHQoHuEeP9UIsTLBL36dbiaBGyXkMexLG5djr4RIjbzn024nUSk8no+TSqylwxiH/tpW5H8sw==", "requires": { - "@wordpress/block-editor": "^8.0.5", + "@wordpress/block-editor": "^8.0.6", "@wordpress/blocks": "^11.1.4", - "@wordpress/components": "^19.0.5", + "@wordpress/components": "^19.1.0", "@wordpress/compose": "^5.0.6", - "@wordpress/core-data": "^4.0.7", + "@wordpress/core-data": "^4.0.8", "@wordpress/data": "^6.1.4", "@wordpress/element": "^4.0.4", "@wordpress/i18n": "^4.2.4", @@ -5485,14 +5487,14 @@ } }, "@wordpress/server-side-render": { - "version": "3.0.9", - "resolved": "https://registry.npmjs.org/@wordpress/server-side-render/-/server-side-render-3.0.9.tgz", - "integrity": "sha512-9Pv6909FWDuW8OGZUR/pY3D7+YBIT+O/PI9JcNuNtbUK7YuEc+PF7KNTQ0dTuxRvOYy3kQNw/a4pWefq1HDNzA==", + "version": "3.0.10", + "resolved": "https://registry.npmjs.org/@wordpress/server-side-render/-/server-side-render-3.0.10.tgz", + "integrity": "sha512-6Ifor/lSJEPpqsdHdNt4NhO/ufR0FyjKN4uIhyZW69BdK6OZrXlovLB//vOgR4a+aTqNprbWNbx+lU7nDXASRg==", "requires": { "@babel/runtime": "^7.16.0", "@wordpress/api-fetch": "^5.2.6", "@wordpress/blocks": "^11.1.4", - "@wordpress/components": "^19.0.5", + "@wordpress/components": "^19.1.0", "@wordpress/compose": "^5.0.6", "@wordpress/data": "^6.1.4", "@wordpress/deprecated": "^3.2.3", @@ -5558,17 +5560,17 @@ "integrity": "sha512-iG1Hq56RK3N6AJqAD1sRLWRIJatfYn+NrPyrfqRNZNYXHM8Vj/s7ABNMbIU0Y99vXkBE83rvCdbMkugNoI2jXA==" }, "@wordpress/widgets": { - "version": "2.0.11", - "resolved": "https://registry.npmjs.org/@wordpress/widgets/-/widgets-2.0.11.tgz", - "integrity": "sha512-XIY/W7WnEXbWSeycFtxaShHYxtJOlTgX9L4DCo/hh2IHkG3HHsZ8qIx0lMtsMq2BKZ2mbL3GCp/cjgBNQygUhg==", + "version": "2.0.12", + "resolved": "https://registry.npmjs.org/@wordpress/widgets/-/widgets-2.0.12.tgz", + "integrity": "sha512-XhECJrxmRHT4sFAQCoYWDMADKzN8M5RNfvpZeDJlAa+clk1JN15ljsUsvQR8MkIN4o+W261wVkbCZX2Jej+i0w==", "requires": { "@babel/runtime": "^7.16.0", "@wordpress/api-fetch": "^5.2.6", - "@wordpress/block-editor": "^8.0.5", + "@wordpress/block-editor": "^8.0.6", "@wordpress/blocks": "^11.1.4", - "@wordpress/components": "^19.0.5", + "@wordpress/components": "^19.1.0", "@wordpress/compose": "^5.0.6", - "@wordpress/core-data": "^4.0.7", + "@wordpress/core-data": "^4.0.8", "@wordpress/data": "^6.1.4", "@wordpress/element": "^4.0.4", "@wordpress/i18n": "^4.2.4", @@ -18301,9 +18303,9 @@ } }, "micromodal": { - "version": "0.4.6", - "resolved": "https://registry.npmjs.org/micromodal/-/micromodal-0.4.6.tgz", - "integrity": "sha512-2VDso2a22jWPpqwuWT/4RomVpoU3Bl9qF9D01xzwlNp5UVsImeA0gY4nSpF44vqcQtQOtkiMUV9EZkAJSRxBsg==" + "version": "0.4.10", + "resolved": "https://registry.npmjs.org/micromodal/-/micromodal-0.4.10.tgz", + "integrity": "sha512-BUrEnzMPFBwK8nOE4xUDYHLrlGlLULQVjpja99tpJQPSUEWgw3kTLp1n1qv0HmKU29AiHE7Y7sMLiRziDK4ghQ==" }, "miller-rabin": { "version": "4.0.1", diff --git a/package.json b/package.json index 25363b1af3fdb..cd8e86ae79c8a 100644 --- a/package.json +++ b/package.json @@ -82,53 +82,53 @@ "@wordpress/api-fetch": "5.2.6", "@wordpress/autop": "3.2.3", "@wordpress/blob": "3.2.2", - "@wordpress/block-directory": "3.0.11", - "@wordpress/block-editor": "8.0.5", - "@wordpress/block-library": "6.0.9", + "@wordpress/block-directory": "3.0.12", + "@wordpress/block-editor": "8.0.6", + "@wordpress/block-library": "6.0.10", "@wordpress/block-serialization-default-parser": "4.2.3", "@wordpress/blocks": "11.1.4", - "@wordpress/components": "19.0.5", + "@wordpress/components": "19.1.0", "@wordpress/compose": "5.0.6", - "@wordpress/core-data": "4.0.7", - "@wordpress/customize-widgets": "2.0.11", + "@wordpress/core-data": "4.0.8", + "@wordpress/customize-widgets": "2.0.12", "@wordpress/data": "6.1.4", "@wordpress/data-controls": "2.2.7", "@wordpress/date": "4.2.3", "@wordpress/deprecated": "3.2.3", "@wordpress/dom": "3.2.7", "@wordpress/dom-ready": "3.2.3", - "@wordpress/edit-post": "5.0.11", - "@wordpress/edit-site": "3.0.11", - "@wordpress/edit-widgets": "3.1.6", - "@wordpress/editor": "12.0.8", + "@wordpress/edit-post": "5.0.12", + "@wordpress/edit-site": "3.0.12", + "@wordpress/edit-widgets": "3.1.7", + "@wordpress/editor": "12.0.9", "@wordpress/element": "4.0.4", "@wordpress/escape-html": "2.2.3", - "@wordpress/format-library": "3.0.11", + "@wordpress/format-library": "3.0.12", "@wordpress/hooks": "3.2.2", "@wordpress/html-entities": "3.2.3", "@wordpress/i18n": "4.2.4", "@wordpress/icons": "6.1.1", - "@wordpress/interface": "4.1.7", + "@wordpress/interface": "4.1.8", "@wordpress/is-shallow-equal": "4.2.1", "@wordpress/keyboard-shortcuts": "3.0.6", "@wordpress/keycodes": "3.2.4", - "@wordpress/list-reusable-blocks": "3.0.9", + "@wordpress/list-reusable-blocks": "3.0.10", "@wordpress/media-utils": "3.0.5", "@wordpress/notices": "3.2.7", - "@wordpress/nux": "5.0.9", + "@wordpress/nux": "5.0.10", "@wordpress/plugins": "4.0.6", "@wordpress/primitives": "3.0.4", "@wordpress/priority-queue": "2.2.3", "@wordpress/redux-routine": "4.2.2", - "@wordpress/reusable-blocks": "3.0.11", + "@wordpress/reusable-blocks": "3.0.12", "@wordpress/rich-text": "5.0.6", - "@wordpress/server-side-render": "3.0.9", + "@wordpress/server-side-render": "3.0.10", "@wordpress/shortcode": "3.2.3", "@wordpress/token-list": "2.2.2", "@wordpress/url": "3.3.1", "@wordpress/viewport": "4.0.6", "@wordpress/warning": "2.2.2", - "@wordpress/widgets": "2.0.11", + "@wordpress/widgets": "2.0.12", "@wordpress/wordcount": "3.2.3", "backbone": "1.4.0", "clipboard": "2.0.8", diff --git a/src/wp-includes/assets/script-loader-packages.php b/src/wp-includes/assets/script-loader-packages.php index 6b69e9db20005..02808b547ccc4 100644 --- a/src/wp-includes/assets/script-loader-packages.php +++ b/src/wp-includes/assets/script-loader-packages.php @@ -1 +1 @@ - array('dependencies' => array('wp-dom-ready', 'wp-i18n', 'wp-polyfill'), 'version' => 'fa03f246887237d01c383e85ff6f107c'), 'annotations.js' => array('dependencies' => array('lodash', 'wp-data', 'wp-hooks', 'wp-i18n', 'wp-polyfill', 'wp-rich-text'), 'version' => 'acd6ed75d460d0d3781e1ef6c12cf2aa'), 'api-fetch.js' => array('dependencies' => array('wp-i18n', 'wp-polyfill', 'wp-url'), 'version' => '59f6dbf5a1d9a141515c25411bc4f01e'), 'autop.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'e65166da67ee5d5ff66d36ab14532b3b'), 'blob.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'b8855b04f6a52a7bca89f8d945d46866'), 'block-directory.js' => array('dependencies' => array('lodash', 'wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-edit-post', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-primitives'), 'version' => 'a8ff26eaaddf949aee8669d14277aec3'), 'block-editor.js' => array('dependencies' => array('lodash', 'react', 'react-dom', 'wp-a11y', 'wp-api-fetch', 'wp-blob', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-notices', 'wp-polyfill', 'wp-primitives', 'wp-rich-text', 'wp-shortcode', 'wp-token-list', 'wp-url', 'wp-warning', 'wp-wordcount'), 'version' => '3ffa376560961ee3a73393f18e786d55'), 'block-library.js' => array('dependencies' => array('lodash', 'moment', 'wp-a11y', 'wp-api-fetch', 'wp-autop', 'wp-blob', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keycodes', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-reusable-blocks', 'wp-rich-text', 'wp-server-side-render', 'wp-url', 'wp-viewport'), 'version' => '6b537dd5ff318e1d3ac6e32944977862'), 'block-serialization-default-parser.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'cc8e5d0e23cf68bb9944bf2a7a016e52'), 'blocks.js' => array('dependencies' => array('lodash', 'wp-autop', 'wp-blob', 'wp-block-serialization-default-parser', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-shortcode'), 'version' => 'a32036d432544d670dbd252aafb343aa'), 'components.js' => array('dependencies' => array('lodash', 'moment', 'react', 'react-dom', 'wp-a11y', 'wp-compose', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keycodes', 'wp-polyfill', 'wp-primitives', 'wp-rich-text', 'wp-warning'), 'version' => '3de5cbb0aefe275d8abf23f738c797fa'), 'compose.js' => array('dependencies' => array('lodash', 'react', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-is-shallow-equal', 'wp-keycodes', 'wp-polyfill', 'wp-priority-queue'), 'version' => '9dac23239e3ee771f867989188a2e766'), 'core-data.js' => array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-blocks', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-url'), 'version' => '3ee92c4459cc98f8e6ebcdb8ce35e578'), 'customize-widgets.js' => array('dependencies' => array('lodash', 'wp-a11y', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-viewport', 'wp-widgets'), 'version' => 'a4ae79ff9d722a302a31b7af5478e6b7'), 'data.js' => array('dependencies' => array('lodash', 'react', 'wp-compose', 'wp-deprecated', 'wp-element', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-priority-queue', 'wp-redux-routine'), 'version' => 'f9c70b06478edf537328ed5ca3555658'), 'data-controls.js' => array('dependencies' => array('wp-api-fetch', 'wp-data', 'wp-deprecated', 'wp-polyfill'), 'version' => 'a6b5897d9fe0799f7c5167a4a9fb3fc2'), 'date.js' => array('dependencies' => array('moment', 'wp-polyfill'), 'version' => 'be8358e0f87d66f2bec405069f113602'), 'deprecated.js' => array('dependencies' => array('wp-hooks', 'wp-polyfill'), 'version' => '64e8de35a014ff611a39da7042d361dd'), 'dom.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '7d156934b7b48d00965baf08e162ab91'), 'dom-ready.js' => array('dependencies' => array('wp-polyfill'), 'version' => '7ad174e925c73007ee5b17358242e7d9'), 'edit-post.js' => array('dependencies' => array('lodash', 'wp-a11y', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-data-controls', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-url', 'wp-viewport', 'wp-warning'), 'version' => '78dd73ace08da4436266d54e551f1801'), 'edit-site.js' => array('dependencies' => array('lodash', 'wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-data-controls', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-url', 'wp-viewport'), 'version' => '9564025f796935e5ed95304230462642'), 'edit-widgets.js' => array('dependencies' => array('lodash', 'wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-reusable-blocks', 'wp-url', 'wp-viewport', 'wp-widgets'), 'version' => '98424c28360f75deb941d9d5977df074'), 'editor.js' => array('dependencies' => array('lodash', 'react', 'wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-data-controls', 'wp-date', 'wp-deprecated', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-polyfill', 'wp-primitives', 'wp-reusable-blocks', 'wp-rich-text', 'wp-server-side-render', 'wp-url', 'wp-wordcount'), 'version' => '22329f7ff9d35759e1a4ed63f50fd1f1'), 'element.js' => array('dependencies' => array('lodash', 'react', 'react-dom', 'wp-escape-html', 'wp-polyfill'), 'version' => '32e0abe121ab85a88acb6472274ad136'), 'escape-html.js' => array('dependencies' => array('wp-polyfill'), 'version' => '4f03d9c45a01df8191f6833373fe1cfa'), 'format-library.js' => array('dependencies' => array('lodash', 'wp-a11y', 'wp-block-editor', 'wp-components', 'wp-data', 'wp-element', 'wp-html-entities', 'wp-i18n', 'wp-polyfill', 'wp-primitives', 'wp-rich-text', 'wp-url'), 'version' => '314e138f1050b863fc65347b91b547d5'), 'hooks.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'fee9af3abfeb76b497fd074608dca647'), 'html-entities.js' => array('dependencies' => array('wp-polyfill'), 'version' => '140ecb91be91e7eec34220584d085033'), 'i18n.js' => array('dependencies' => array('wp-hooks', 'wp-polyfill'), 'version' => '9ddfa7e364f034c04939567c6c6079d5'), 'is-shallow-equal.js' => array('dependencies' => array('wp-polyfill'), 'version' => '798b660598677b39413fdb5f68624aa8'), 'keyboard-shortcuts.js' => array('dependencies' => array('lodash', 'wp-data', 'wp-element', 'wp-keycodes', 'wp-polyfill'), 'version' => '78a4020b31c5ae28f7e97405b83d5027'), 'keycodes.js' => array('dependencies' => array('lodash', 'wp-i18n', 'wp-polyfill'), 'version' => '57a448b50bb24e264205e448e0b19ea2'), 'list-reusable-blocks.js' => array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-components', 'wp-compose', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => '411699046747b4d90f82c5b2547ff43c'), 'media-utils.js' => array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-blob', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => 'ab2c70450229febbbb0a87e88074db07'), 'notices.js' => array('dependencies' => array('lodash', 'wp-data', 'wp-polyfill'), 'version' => 'b9e78ffafe025c455d9ccf2c1a78d1de'), 'nux.js' => array('dependencies' => array('lodash', 'wp-components', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives'), 'version' => 'feee5fbb3df2a20c6dc4653f33d12e13'), 'plugins.js' => array('dependencies' => array('lodash', 'wp-compose', 'wp-element', 'wp-hooks', 'wp-polyfill', 'wp-primitives'), 'version' => '76d0e1ad216a273ab1359db9aaab1809'), 'primitives.js' => array('dependencies' => array('wp-element', 'wp-polyfill'), 'version' => 'ec5aecfc61b399ed5c8fa2de6b175942'), 'priority-queue.js' => array('dependencies' => array('wp-polyfill'), 'version' => '18c93919f04bb681234310b314675b17'), 'redux-routine.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => 'f4483156a9bae90512f894dbd867b929'), 'reusable-blocks.js' => array('dependencies' => array('lodash', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-core-data', 'wp-data', 'wp-element', 'wp-i18n', 'wp-notices', 'wp-polyfill', 'wp-primitives', 'wp-url'), 'version' => '436b8be211e4f30893de92b1faad8984'), 'rich-text.js' => array('dependencies' => array('lodash', 'wp-a11y', 'wp-compose', 'wp-data', 'wp-element', 'wp-escape-html', 'wp-i18n', 'wp-keycodes', 'wp-polyfill'), 'version' => 'c491067ec9fe71eeaa2c74e4ee78f956'), 'server-side-render.js' => array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-url'), 'version' => 'ff256efbd27ce91d114094be9982fadc'), 'shortcode.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '0e7a194ec8387c92e8d2c2b3755c3c9b'), 'token-list.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => 'a50777df914543c1a77067959d6b3fbf'), 'url.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => 'd99eea3ea07b8acf242f75a06a2c49ff'), 'viewport.js' => array('dependencies' => array('lodash', 'wp-compose', 'wp-data', 'wp-element', 'wp-polyfill'), 'version' => '67406a236d2370eedc90db2dfdcb46bd'), 'warning.js' => array('dependencies' => array('wp-polyfill'), 'version' => '5ebe2df53cf3c74ebffc7e2d3e76184c'), 'widgets.js' => array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-element', 'wp-i18n', 'wp-notices', 'wp-polyfill', 'wp-primitives'), 'version' => '3dd8fa0fcd8381649603b755437d9be1'), 'wordcount.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '02339c8ad03da1e7a03f9212da004007')); \ No newline at end of file + array('dependencies' => array('wp-dom-ready', 'wp-i18n', 'wp-polyfill'), 'version' => 'fa03f246887237d01c383e85ff6f107c'), 'annotations.js' => array('dependencies' => array('lodash', 'wp-data', 'wp-hooks', 'wp-i18n', 'wp-polyfill', 'wp-rich-text'), 'version' => 'acd6ed75d460d0d3781e1ef6c12cf2aa'), 'api-fetch.js' => array('dependencies' => array('wp-i18n', 'wp-polyfill', 'wp-url'), 'version' => '59f6dbf5a1d9a141515c25411bc4f01e'), 'autop.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'e65166da67ee5d5ff66d36ab14532b3b'), 'blob.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'b8855b04f6a52a7bca89f8d945d46866'), 'block-directory.js' => array('dependencies' => array('lodash', 'wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-edit-post', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-primitives'), 'version' => 'a8ff26eaaddf949aee8669d14277aec3'), 'block-editor.js' => array('dependencies' => array('lodash', 'react', 'react-dom', 'wp-a11y', 'wp-api-fetch', 'wp-blob', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-notices', 'wp-polyfill', 'wp-primitives', 'wp-rich-text', 'wp-shortcode', 'wp-token-list', 'wp-url', 'wp-warning', 'wp-wordcount'), 'version' => 'f32e4a6767256ef0a5e91fe3788fe9de'), 'block-library.js' => array('dependencies' => array('lodash', 'moment', 'wp-a11y', 'wp-api-fetch', 'wp-autop', 'wp-blob', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keycodes', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-reusable-blocks', 'wp-rich-text', 'wp-server-side-render', 'wp-url', 'wp-viewport'), 'version' => '868f97e65c74e6f8bf8e7ae2fb8b4261'), 'block-serialization-default-parser.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'cc8e5d0e23cf68bb9944bf2a7a016e52'), 'blocks.js' => array('dependencies' => array('lodash', 'wp-autop', 'wp-blob', 'wp-block-serialization-default-parser', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-shortcode'), 'version' => 'a32036d432544d670dbd252aafb343aa'), 'components.js' => array('dependencies' => array('lodash', 'moment', 'react', 'react-dom', 'wp-a11y', 'wp-compose', 'wp-date', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keycodes', 'wp-polyfill', 'wp-primitives', 'wp-rich-text', 'wp-warning'), 'version' => '740d7b9c8beb2b47d15ce1f3c590dee5'), 'compose.js' => array('dependencies' => array('lodash', 'react', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-is-shallow-equal', 'wp-keycodes', 'wp-polyfill', 'wp-priority-queue'), 'version' => '9dac23239e3ee771f867989188a2e766'), 'core-data.js' => array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-blocks', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-html-entities', 'wp-i18n', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-url'), 'version' => '15ee57b1f0ac2f25cdee181ee369950a'), 'customize-widgets.js' => array('dependencies' => array('lodash', 'wp-a11y', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-is-shallow-equal', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-viewport', 'wp-widgets'), 'version' => 'a4ae79ff9d722a302a31b7af5478e6b7'), 'data.js' => array('dependencies' => array('lodash', 'react', 'wp-compose', 'wp-deprecated', 'wp-element', 'wp-is-shallow-equal', 'wp-polyfill', 'wp-priority-queue', 'wp-redux-routine'), 'version' => 'f9c70b06478edf537328ed5ca3555658'), 'data-controls.js' => array('dependencies' => array('wp-api-fetch', 'wp-data', 'wp-deprecated', 'wp-polyfill'), 'version' => 'a6b5897d9fe0799f7c5167a4a9fb3fc2'), 'date.js' => array('dependencies' => array('moment', 'wp-polyfill'), 'version' => 'be8358e0f87d66f2bec405069f113602'), 'deprecated.js' => array('dependencies' => array('wp-hooks', 'wp-polyfill'), 'version' => '64e8de35a014ff611a39da7042d361dd'), 'dom.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '7d156934b7b48d00965baf08e162ab91'), 'dom-ready.js' => array('dependencies' => array('wp-polyfill'), 'version' => '7ad174e925c73007ee5b17358242e7d9'), 'edit-post.js' => array('dependencies' => array('lodash', 'wp-a11y', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-data-controls', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-url', 'wp-viewport', 'wp-warning'), 'version' => '78dd73ace08da4436266d54e551f1801'), 'edit-site.js' => array('dependencies' => array('lodash', 'wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-data-controls', 'wp-editor', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-reusable-blocks', 'wp-url', 'wp-viewport'), 'version' => '2f5a0019e6e13496c0c6466f930380c3'), 'edit-widgets.js' => array('dependencies' => array('lodash', 'wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-block-library', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-plugins', 'wp-polyfill', 'wp-primitives', 'wp-reusable-blocks', 'wp-url', 'wp-viewport', 'wp-widgets'), 'version' => '98424c28360f75deb941d9d5977df074'), 'editor.js' => array('dependencies' => array('lodash', 'react', 'wp-a11y', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-data-controls', 'wp-date', 'wp-deprecated', 'wp-element', 'wp-hooks', 'wp-html-entities', 'wp-i18n', 'wp-keyboard-shortcuts', 'wp-keycodes', 'wp-media-utils', 'wp-notices', 'wp-polyfill', 'wp-primitives', 'wp-reusable-blocks', 'wp-rich-text', 'wp-server-side-render', 'wp-url', 'wp-wordcount'), 'version' => '22329f7ff9d35759e1a4ed63f50fd1f1'), 'element.js' => array('dependencies' => array('lodash', 'react', 'react-dom', 'wp-escape-html', 'wp-polyfill'), 'version' => '32e0abe121ab85a88acb6472274ad136'), 'escape-html.js' => array('dependencies' => array('wp-polyfill'), 'version' => '4f03d9c45a01df8191f6833373fe1cfa'), 'format-library.js' => array('dependencies' => array('lodash', 'wp-a11y', 'wp-block-editor', 'wp-components', 'wp-data', 'wp-element', 'wp-html-entities', 'wp-i18n', 'wp-polyfill', 'wp-primitives', 'wp-rich-text', 'wp-url'), 'version' => '314e138f1050b863fc65347b91b547d5'), 'hooks.js' => array('dependencies' => array('wp-polyfill'), 'version' => 'fee9af3abfeb76b497fd074608dca647'), 'html-entities.js' => array('dependencies' => array('wp-polyfill'), 'version' => '140ecb91be91e7eec34220584d085033'), 'i18n.js' => array('dependencies' => array('wp-hooks', 'wp-polyfill'), 'version' => '9ddfa7e364f034c04939567c6c6079d5'), 'is-shallow-equal.js' => array('dependencies' => array('wp-polyfill'), 'version' => '798b660598677b39413fdb5f68624aa8'), 'keyboard-shortcuts.js' => array('dependencies' => array('lodash', 'wp-data', 'wp-element', 'wp-keycodes', 'wp-polyfill'), 'version' => '78a4020b31c5ae28f7e97405b83d5027'), 'keycodes.js' => array('dependencies' => array('lodash', 'wp-i18n', 'wp-polyfill'), 'version' => '57a448b50bb24e264205e448e0b19ea2'), 'list-reusable-blocks.js' => array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-components', 'wp-compose', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => '411699046747b4d90f82c5b2547ff43c'), 'media-utils.js' => array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-blob', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => 'ab2c70450229febbbb0a87e88074db07'), 'notices.js' => array('dependencies' => array('lodash', 'wp-data', 'wp-polyfill'), 'version' => 'b9e78ffafe025c455d9ccf2c1a78d1de'), 'nux.js' => array('dependencies' => array('lodash', 'wp-components', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-primitives'), 'version' => 'feee5fbb3df2a20c6dc4653f33d12e13'), 'plugins.js' => array('dependencies' => array('lodash', 'wp-compose', 'wp-element', 'wp-hooks', 'wp-polyfill', 'wp-primitives'), 'version' => '76d0e1ad216a273ab1359db9aaab1809'), 'primitives.js' => array('dependencies' => array('wp-element', 'wp-polyfill'), 'version' => 'ec5aecfc61b399ed5c8fa2de6b175942'), 'priority-queue.js' => array('dependencies' => array('wp-polyfill'), 'version' => '18c93919f04bb681234310b314675b17'), 'redux-routine.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => 'f4483156a9bae90512f894dbd867b929'), 'reusable-blocks.js' => array('dependencies' => array('lodash', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-core-data', 'wp-data', 'wp-element', 'wp-i18n', 'wp-notices', 'wp-polyfill', 'wp-primitives', 'wp-url'), 'version' => '436b8be211e4f30893de92b1faad8984'), 'rich-text.js' => array('dependencies' => array('lodash', 'wp-a11y', 'wp-compose', 'wp-data', 'wp-element', 'wp-escape-html', 'wp-i18n', 'wp-keycodes', 'wp-polyfill'), 'version' => 'c491067ec9fe71eeaa2c74e4ee78f956'), 'server-side-render.js' => array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-data', 'wp-deprecated', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-url'), 'version' => 'ff256efbd27ce91d114094be9982fadc'), 'shortcode.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '0e7a194ec8387c92e8d2c2b3755c3c9b'), 'token-list.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => 'a50777df914543c1a77067959d6b3fbf'), 'url.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => 'd99eea3ea07b8acf242f75a06a2c49ff'), 'viewport.js' => array('dependencies' => array('lodash', 'wp-compose', 'wp-data', 'wp-element', 'wp-polyfill'), 'version' => '67406a236d2370eedc90db2dfdcb46bd'), 'warning.js' => array('dependencies' => array('wp-polyfill'), 'version' => '5ebe2df53cf3c74ebffc7e2d3e76184c'), 'widgets.js' => array('dependencies' => array('lodash', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-compose', 'wp-core-data', 'wp-data', 'wp-element', 'wp-i18n', 'wp-notices', 'wp-polyfill', 'wp-primitives'), 'version' => '3dd8fa0fcd8381649603b755437d9be1'), 'wordcount.js' => array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '02339c8ad03da1e7a03f9212da004007')); \ No newline at end of file diff --git a/src/wp-includes/blocks/calendar.php b/src/wp-includes/blocks/calendar.php index c6ba095a926df..3e0e48c65b28a 100644 --- a/src/wp-includes/blocks/calendar.php +++ b/src/wp-includes/blocks/calendar.php @@ -85,7 +85,7 @@ function block_core_calendar_has_published_posts() { } // On single sites we try our own cached option first. - $has_published_posts = get_option( 'gutenberg_calendar_block_has_published_posts', null ); + $has_published_posts = get_option( 'wp_calendar_block_has_published_posts', null ); if ( null !== $has_published_posts ) { return (bool) $has_published_posts; } @@ -103,7 +103,7 @@ function block_core_calendar_has_published_posts() { function block_core_calendar_update_has_published_posts() { global $wpdb; $has_published_posts = (bool) $wpdb->get_var( "SELECT 1 as test FROM {$wpdb->posts} WHERE post_type = 'post' AND post_status = 'publish' LIMIT 1" ); - update_option( 'gutenberg_calendar_block_has_published_posts', $has_published_posts ); + update_option( 'wp_calendar_block_has_published_posts', $has_published_posts ); return $has_published_posts; } diff --git a/src/wp-includes/blocks/navigation.php b/src/wp-includes/blocks/navigation.php index e3848190c6e78..bfd63c3f2c0bc 100644 --- a/src/wp-includes/blocks/navigation.php +++ b/src/wp-includes/blocks/navigation.php @@ -9,7 +9,8 @@ * Build an array with CSS classes and inline styles defining the colors * which will be applied to the navigation markup in the front-end. * - * @param array $attributes Navigation block attributes. + * @param array $attributes Navigation block attributes. + * * @return array Colors CSS classes and inline styles. */ function block_core_navigation_build_css_colors( $attributes ) { @@ -99,7 +100,8 @@ function block_core_navigation_build_css_colors( $attributes ) { * Build an array with CSS classes and inline styles defining the font sizes * which will be applied to the navigation markup in the front-end. * - * @param array $attributes Navigation block attributes. + * @param array $attributes Navigation block attributes. + * * @return array Font size CSS classes and inline styles. */ function block_core_navigation_build_css_font_sizes( $attributes ) { @@ -132,6 +134,100 @@ function block_core_navigation_render_submenu_icon() { return ''; } + +/** + * Finds the first non-empty `wp_navigation` Post. + * + * @return WP_Post|null the first non-empty Navigation or null. + */ +function block_core_navigation_get_first_non_empty_navigation() { + // Order and orderby args set to mirror those in `wp_get_nav_menus` + // see: + // - https://github.com/WordPress/wordpress-develop/blob/ba943e113d3b31b121f77a2d30aebe14b047c69d/src/wp-includes/nav-menu.php#L613-L619. + // - https://developer.wordpress.org/reference/classes/wp_query/#order-orderby-parameters. + $navigation_posts = get_posts( + array( + 'post_type' => 'wp_navigation', + 'order' => 'ASC', + 'orderby' => 'name', + 'posts_per_page' => 1, // only the first post. + 's' => '