Make WordPress Core


Ignore:
Timestamp:
04/12/2022 03:10:30 PM (4 years ago)
Author:
gziolo
Message:

Editor: Update WordPress packages based based on Gutenberg v13.0 RC3

This is the last step of backports from the Gutenberg plugin for WordPress 6.0 Beta 1 release. It includes all updates WordPress packages published to npm based on the Gutenberg plugin v13.0 RC3 release. This patch also includes all the necessary changes applied to core blocks. New blocks included:

  • Avatar
  • Comment Author Name
  • Comment Content
  • Comment Date
  • Comment Edit Link
  • Comment Rely Link
  • Comment Template
  • Comments Pagination
  • Comments Pagination Next
  • Comments Pagination Previous
  • Comments Query Loop
  • Home Link
  • Post Author Biography
  • Query No Results
  • Read More

See more details in ​https://github.com/WordPress/wordpress-develop/pull/2564.

Props zieladam, ramonopoly, ocean90.
Fixes #55505.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/blocks/template-part.php

    r52364 r53157  
    104104        }
    105105
    106         if ( is_null( $content ) && is_user_logged_in() ) {
     106        // WP_DEBUG_DISPLAY must only be honored when WP_DEBUG. This precedent
     107        // is set in `wp_debug_mode()`.
     108        $is_debug = defined( 'WP_DEBUG' ) && WP_DEBUG &&
     109                defined( 'WP_DEBUG_DISPLAY' ) && WP_DEBUG_DISPLAY;
     110
     111        if ( is_null( $content ) && $is_debug ) {
    107112                if ( ! isset( $attributes['slug'] ) ) {
    108113                        // If there is no slug this is a placeholder and we dont want to return any message.
    … …  
    117122
    118123        if ( isset( $seen_ids[ $template_part_id ] ) ) {
    119                 // WP_DEBUG_DISPLAY must only be honored when WP_DEBUG. This precedent
    120                 // is set in `wp_debug_mode()`.
    121                 $is_debug = defined( 'WP_DEBUG' ) && WP_DEBUG &&
    122                         defined( 'WP_DEBUG_DISPLAY' ) && WP_DEBUG_DISPLAY;
    123 
    124124                return $is_debug ?
    125125                        // translators: Visible only in the front end, this warning takes the place of a faulty block.
Note: See TracChangeset for help on using the changeset viewer.