Changeset 51051 for trunk/src/wp-includes/blocks/query-loop.php
- Timestamp:
- 06/01/2021 08:07:07 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/blocks/query-loop.php
r50945 r51051 17 17 function render_block_core_query_loop( $attributes, $content, $block ) { 18 18 $page_key = isset( $block->context['queryId'] ) ? 'query-' . $block->context['queryId'] . '-page' : 'query-page'; 19 $page = empty( $_GET[ $page_key ] ) ? 1 : filter_var( $_GET[ $page_key ], FILTER_VALIDATE_INT );19 $page = empty( $_GET[ $page_key ] ) ? 1 : (int) $_GET[ $page_key ]; 20 20 21 21 $query_args = build_query_vars_from_query_block( $block, $page );
Note: See TracChangeset
for help on using the changeset viewer.