Make WordPress Core


Ignore:
Timestamp:
01/11/2022 03:12:21 AM (3 years ago)
Author:
noisysocks
Message:

Update packages to include these bug fixes from Gutenberg:

  • [Block Library - Query Pagination Next]: Hide block if custom query has no results
  • [WP 5.9] Fix: HTML tags like inline images in nav links break submenu layout
  • Check for nextpage to display page links for paginated posts
  • Navigation: Set the default for --navigation-layout-align to "flex-start" when using vertical orientation
  • [Block Library - Query Loop]: Use gap for the grid view
  • Update page list flex variables to match navigation.
  • Site logo: Fix range control on landscape logo
  • Restore canvas padding for classic themes
  • RichText: Fix dead key input on Windows
  • Fix: Impossible to clear colors if color palettes are removed.
  • Gallery block: pass any custom attributes through the gallery v2 migration script
  • Reduce specificity of legacy font sizes defined by core
  • Update: Improve escaping on the search block

See #54487.
Props isabel_brison.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/5.9/src/wp-includes/blocks/post-content.php

    r52434 r52552  
    4747    // We force this behavior by omitting the third argument (post ID) from the `get_the_content`.
    4848    $content = get_the_content( null, false );
     49    // Check for nextpage to display page links for paginated posts.
     50    if ( has_block( 'core/nextpage' ) ) {
     51        $content .= wp_link_pages( array( 'echo' => 0 ) );
     52    }
     53
    4954    /** This filter is documented in wp-includes/post-template.php */
    5055    $content = apply_filters( 'the_content', str_replace( ']]>', ']]>', $content ) );
Note: See TracChangeset for help on using the changeset viewer.