Make WordPress Core


Ignore:
Timestamp:
02/09/2024 06:20:12 PM (10 months ago)
Author:
youknowriad
Message:

Editor: Update the WordPress packages to Gutenberg 17.7RC1.

This brings the latest and greatest from Gutenberg.
The full changelog is available here
https://github.com/WordPress/gutenberg/releases/tag/v17.7.0-rc.1

Props youknowriad, get_dave.
See #60315.

File:
1 edited

Legend:

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

    r57377 r57578  
    110110    $is_debug = WP_DEBUG && WP_DEBUG_DISPLAY;
    111111
    112     if ( is_null( $content ) && $is_debug ) {
    113         if ( ! isset( $attributes['slug'] ) ) {
    114             // If there is no slug this is a placeholder and we dont want to return any message.
    115             return;
    116         }
    117         return sprintf(
    118             /* translators: %s: Template part slug. */
    119             __( 'Template part has been deleted or is unavailable: %s' ),
    120             $attributes['slug']
    121         );
     112    if ( is_null( $content ) ) {
     113        if ( $is_debug && isset( $attributes['slug'] ) ) {
     114            return sprintf(
     115                /* translators: %s: Template part slug. */
     116                __( 'Template part has been deleted or is unavailable: %s' ),
     117                $attributes['slug']
     118            );
     119        }
     120
     121        return '';
    122122    }
    123123
Note: See TracChangeset for help on using the changeset viewer.