Changeset 50945 for trunk/src/wp-includes/blocks/query-loop.php
- Timestamp:
- 05/21/2021 10:12:42 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/blocks/query-loop.php
r50929 r50945 19 19 $page = empty( $_GET[ $page_key ] ) ? 1 : filter_var( $_GET[ $page_key ], FILTER_VALIDATE_INT ); 20 20 21 $query_args = construct_wp_query_args( $block, $page );21 $query_args = build_query_vars_from_query_block( $block, $page ); 22 22 // Override the custom query with the global query if needed. 23 23 $use_global_query = ( isset( $block->context['query']['inherit'] ) && $block->context['query']['inherit'] ); … … 42 42 43 43 $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']}"; 47 47 } 48 48 }
Note: See TracChangeset
for help on using the changeset viewer.