Make WordPress Core


Ignore:
Timestamp:
05/21/2021 10:12:42 AM (4 years ago)
Author:
youknowriad
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/blocks/query-loop.php

    r50929 r50945  
    1919    $page     = empty( $_GET[ $page_key ] ) ? 1 : filter_var( $_GET[ $page_key ], FILTER_VALIDATE_INT );
    2020
    21     $query_args = construct_wp_query_args( $block, $page );
     21    $query_args = build_query_vars_from_query_block( $block, $page );
    2222    // Override the custom query with the global query if needed.
    2323    $use_global_query = ( isset( $block->context['query']['inherit'] ) && $block->context['query']['inherit'] );
     
    4242
    4343    $classnames = '';
    44     if ( isset( $block->context['layout'] ) && isset( $block->context['query'] ) ) {
    45         if ( isset( $block->context['layout']['type'] ) && 'flex' === $block->context['layout']['type'] ) {
    46             $classnames = "is-flex-container columns-{$block->context['layout']['columns']}";
     44    if ( isset( $block->context['displayLayout'] ) && isset( $block->context['query'] ) ) {
     45        if ( isset( $block->context['displayLayout']['type'] ) && 'flex' === $block->context['displayLayout']['type'] ) {
     46            $classnames = "is-flex-container columns-{$block->context['displayLayout']['columns']}";
    4747        }
    4848    }
Note: See TracChangeset for help on using the changeset viewer.