Make WordPress Core


Ignore:
Timestamp:
07/06/2021 02:36:26 PM (5 years ago)
Author:
youknowriad
Message:

Block Editor: Update packages with latest fixes for 5.8 RC2

Includes the following fixes:

  • [Block Library]: Less warnings when blocks try to render themselves.
  • Reset z-index on focused widget form
  • Refactor appender margin.
  • Fix slash inserter for widgets screen.
  • Widget screens: set html block as freeform content handler.
  • Widget Block: widget_id is undefined when a widget is placed.
  • Add <CopyHandler> to WidgetAreasBlockEditorProvider
  • Add width: 100% to components-base-control inside wp-block-legacy-widget
  • [Widgets editor] Replace the "technical" error notice a more user-friendly one
  • Fix legacy widget height overflow
  • Fix "Select all" behavior in the editor
  • Increase specificity of the NoPreview CSS rules to avoid conflicts with theme styles
  • Fix move to widget area checkmark
  • Replace legacy widget icon with its new version
  • [Block Library - Query Loop]: Set default block variations not to inherit from global query

See #53397.

File:
1 edited

Legend:

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

    r50945 r51344  
    2424
    2525        if ( isset( $seen_ids[ $post_id ] ) ) {
    26                 if ( ! is_admin() ) {
    27                         trigger_error(
    28                                 sprintf(
    29                                         // translators: %s is a post ID (integer).
    30                                         __( 'Could not render Post Content block with post ID: <code>%s</code>. Block cannot be rendered inside itself.' ),
    31                                         $post_id
    32                                 ),
    33                                 E_USER_WARNING
    34                         );
    35                 }
    36 
     26                // WP_DEBUG_DISPLAY must only be honored when WP_DEBUG. This precedent
     27                // is set in `wp_debug_mode()`.
    3728                $is_debug = defined( 'WP_DEBUG' ) && WP_DEBUG &&
    3829                        defined( 'WP_DEBUG_DISPLAY' ) && WP_DEBUG_DISPLAY;
     30
    3931                return $is_debug ?
    4032                        // translators: Visible only in the front end, this warning takes the place of a faulty block.
    … …  
    4537        $seen_ids[ $post_id ] = true;
    4638
    47         if ( ! in_the_loop() ) {
     39        if ( ! in_the_loop() && have_posts() ) {
    4840                the_post();
    4941        }
Note: See TracChangeset for help on using the changeset viewer.