mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 20:30:23 +00:00
Block Editor: Updated the WordPress packages from Gutenberg 10.7.0 RC.
This also includes: - The removal of the Post Author block. - Renaming build_query_vars_from_query_block function. - Update the block supports. Props gziolo. See #52991. -This line, and those below, will be ignored-- M package-lock.json M package.json M src/wp-includes/assets/script-loader-packages.php M src/wp-includes/block-supports/colors.php AM src/wp-includes/block-supports/elements.php D src/wp-includes/block-supports/padding.php AM src/wp-includes/block-supports/spacing.php M src/wp-includes/block-supports/typography.php M src/wp-includes/blocks/column/block.json M src/wp-includes/blocks/index.php D src/wp-includes/blocks/post-author D src/wp-includes/blocks/post-author.php M src/wp-includes/blocks/post-content.php M src/wp-includes/blocks/post-featured-image.php M src/wp-includes/blocks/query/block.json M src/wp-includes/blocks/query-loop/block.json M src/wp-includes/blocks/query-loop.php M src/wp-includes/blocks/query-pagination/block.json M src/wp-includes/blocks/query-pagination-next.php M src/wp-includes/blocks/query-pagination-numbers.php M src/wp-includes/blocks/site-tagline/block.json M src/wp-includes/blocks/site-title/block.json M src/wp-includes/blocks.php M src/wp-settings.php M tests/phpunit/tests/blocks/block.php M tools/webpack/packages.js git-svn-id: https://develop.svn.wordpress.org/trunk@50945 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -434,7 +434,7 @@ class WP_Block_Test extends WP_UnitTestCase {
|
||||
),
|
||||
);
|
||||
$block = new WP_Block( $parsed_block, $context, $this->registry );
|
||||
$query = construct_wp_query_args( $block, 1 );
|
||||
$query = build_query_vars_from_query_block( $block, 1 );
|
||||
|
||||
$this->assertSame(
|
||||
$query,
|
||||
@@ -458,7 +458,7 @@ class WP_Block_Test extends WP_UnitTestCase {
|
||||
$parsed_blocks = parse_blocks( '<!-- wp:example {"ok":true} -->a<!-- wp:example /-->b<!-- /wp:example -->' );
|
||||
$parsed_block = $parsed_blocks[0];
|
||||
$block_no_context = new WP_Block( $parsed_block, array(), $this->registry );
|
||||
$query = construct_wp_query_args( $block_no_context, 1 );
|
||||
$query = build_query_vars_from_query_block( $block_no_context, 1 );
|
||||
|
||||
$this->assertSame(
|
||||
$query,
|
||||
@@ -489,7 +489,7 @@ class WP_Block_Test extends WP_UnitTestCase {
|
||||
),
|
||||
);
|
||||
$block = new WP_Block( $parsed_block, $context, $this->registry );
|
||||
$query = construct_wp_query_args( $block, 1 );
|
||||
$query = build_query_vars_from_query_block( $block, 1 );
|
||||
|
||||
$this->assertSame(
|
||||
$query,
|
||||
@@ -522,7 +522,7 @@ class WP_Block_Test extends WP_UnitTestCase {
|
||||
),
|
||||
);
|
||||
$block = new WP_Block( $parsed_block, $context, $this->registry );
|
||||
$query = construct_wp_query_args( $block, 3 );
|
||||
$query = build_query_vars_from_query_block( $block, 3 );
|
||||
$this->assertSame(
|
||||
$query,
|
||||
array(
|
||||
@@ -554,7 +554,7 @@ class WP_Block_Test extends WP_UnitTestCase {
|
||||
),
|
||||
);
|
||||
$block = new WP_Block( $parsed_block, $context, $this->registry );
|
||||
$query = construct_wp_query_args( $block, 3 );
|
||||
$query = build_query_vars_from_query_block( $block, 3 );
|
||||
$this->assertSame(
|
||||
$query,
|
||||
array(
|
||||
|
||||
Reference in New Issue
Block a user