Make WordPress Core


Ignore:
Timestamp:
06/01/2021 08:07:07 AM (3 years ago)
Author:
youknowriad
Message:

Block Editor: Update packages and backport the latest Gutenberg fixes.

This includes the following fixes:

Props nosolosw, noisysocks.
See #52991.

File:
1 edited

Legend:

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

    r50945 r51051  
    1717function render_block_core_query_pagination_next( $attributes, $content, $block ) {
    1818    $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 ];
    2020    $max_page = isset( $block->context['query']['pages'] ) ? (int) $block->context['query']['pages'] : 0;
    2121
    2222    $wrapper_attributes = get_block_wrapper_attributes();
    23     $default_label      = __( 'Next Page »', 'gutenberg' );
     23    $default_label      = __( 'Next Page »' );
    2424    $label              = isset( $attributes['label'] ) && ! empty( $attributes['label'] ) ? $attributes['label'] : $default_label;
    2525    $content            = '';
Note: See TracChangeset for help on using the changeset viewer.