Make WordPress Core


Ignore:
Timestamp:
09/20/2024 01:53:52 AM (6 months ago)
Author:
noisysocks
Message:

Editor: Update packages for 6.7 Beta 1.

Syncs @wordpress/* packages to the wp-6.7 npm tag.

Fixes #61906.
Props peterwilsoncc, gziolo, kevin940726.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/blocks/tag-cloud.php

    r58187 r59072  
    3030    $tag_cloud = wp_tag_cloud( $args );
    3131
    32     if ( ! $tag_cloud ) {
    33         $tag_cloud = __( 'There’s no content to show here yet.' );
     32    if ( empty( $tag_cloud ) ) {
     33        // Display placeholder content when there are no tags only in editor.
     34        if ( wp_is_serving_rest_request() ) {
     35            $tag_cloud = __( 'There’s no content to show here yet.' );
     36        } else {
     37            return '';
     38        }
    3439    }
    3540
Note: See TracChangeset for help on using the changeset viewer.