Changeset 59072 for trunk/src/wp-includes/blocks/tag-cloud.php
- Timestamp:
- 09/20/2024 01:53:52 AM (6 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/blocks/tag-cloud.php
r58187 r59072 30 30 $tag_cloud = wp_tag_cloud( $args ); 31 31 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 } 34 39 } 35 40
Note: See TracChangeset
for help on using the changeset viewer.