Make WordPress Core


Ignore:
Timestamp:
01/04/2022 05:37:25 AM (3 years ago)
Author:
noisysocks
Message:

Update @wordpress packages

Update packages to include these bug fixes from Gutenberg:

  • Site Logo: Add option to set site icon from Site Logo block
  • Navigation: Enable even more compact setup state.
  • Remove template parts from post content inserter an unstable filter
  • Template Editor Mode: Hide editor mode switcher
  • Avoid using CSS variables for block gap styles
  • Try to fix auto resizing in template part focus mode
  • Lower the specificity of font size CSS Custom Properties in the editor
  • Site icon: Fix site icon styling to display non-square site icons within a square button
  • [Site Editor]: Register block editor shortcuts
  • Update regex to handle 404 template slug
  • Site Editor: Remove dead code
  • [Block Editor]: Restrict delete multi selected blocks shortcut
  • Fix: Gradients are not being applied by class
  • Update: Make the global styles subtitles font smaller
  • Post Content/Title: Reflect changes when previewing post
  • ServerSideRender: Fix loading state
  • [Block Library]: Fix editable post blocks in Query Loop with zero queryId
  • Post Excerpt: Fix previews
  • WP59: Contextualize "Export" string to differentiate it from other occurrences in WP Core
  • Tools Panel: Fix race conditions caused by conditionally displayed ToolsPanelItems
  • ToolsPanel: Allow items to register when panelId is null
  • Font Size Picker: Allow non-integers as simple CSS values and in hints
  • [Components - FontSizePicker]: Use incremental sequence of numbers as labels for the available font-sizes at the segmented control (conditionally)

See #54487.

File:
1 edited

Legend:

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

    r51344 r52434  
    3737    $seen_ids[ $post_id ] = true;
    3838
     39    // Check is needed for backward compatibility with third-party plugins
     40    // that might rely on the `in_the_loop` check; calling `the_post` sets it to true.
    3941    if ( ! in_the_loop() && have_posts() ) {
    4042        the_post();
    4143    }
    4244
    43     $content = get_the_content( null, false, $post_id );
     45    // When inside the main loop, we want to use queried object
     46    // so that `the_preview` for the current post can apply.
     47    // We force this behavior by omitting the third argument (post ID) from the `get_the_content`.
     48    $content = get_the_content( null, false );
    4449    /** This filter is documented in wp-includes/post-template.php */
    4550    $content = apply_filters( 'the_content', str_replace( ']]>', ']]>', $content ) );
Note: See TracChangeset for help on using the changeset viewer.