--- a/wp/wp-includes/blocks/tag-cloud.php Thu Sep 29 08:06:27 2022 +0200
+++ b/wp/wp-includes/blocks/tag-cloud.php Fri Sep 05 18:40:08 2025 +0200
@@ -8,6 +8,8 @@
/**
* Renders the `core/tag-cloud` block on server.
*
+ * @since 5.2.0
+ *
* @param array $attributes The block attributes.
*
* @return string Returns the tag cloud for selected taxonomy.
@@ -28,14 +30,7 @@
$tag_cloud = wp_tag_cloud( $args );
if ( ! $tag_cloud ) {
- $labels = get_taxonomy_labels( get_taxonomy( $attributes['taxonomy'] ) );
- $tag_cloud = esc_html(
- sprintf(
- /* translators: %s: taxonomy name */
- __( 'Your site doesn’t have any %s, so there’s nothing to display here at the moment.' ),
- strtolower( $labels->name )
- )
- );
+ $tag_cloud = __( 'There’s no content to show here yet.' );
}
$wrapper_attributes = get_block_wrapper_attributes();
@@ -49,6 +44,8 @@
/**
* Registers the `core/tag-cloud` block on server.
+ *
+ * @since 5.2.0
*/
function register_block_core_tag_cloud() {
register_block_type_from_metadata(