Make WordPress Core

Ticket #59363: tag_cloud_apply_filter.diff

File tag_cloud_apply_filter.diff, 660 bytes (added by steffenkrueger, 13 months ago)
  • src/wp-includes/blocks/tag-cloud.php

    diff --git a/src/wp-includes/blocks/tag-cloud.php b/src/wp-includes/blocks/tag-cloud.php
    index 7ff5f78400..70324c1efd 100644
    a b function render_block_core_tag_cloud( $attributes ) { 
    2525                'smallest'   => floatVal( $attributes['smallestFontSize'] ),
    2626                'largest'    => floatVal( $attributes['largestFontSize'] ),
    2727        );
    28         $tag_cloud = wp_tag_cloud( $args );
     28  $tag_cloud = wp_tag_cloud(
     29    apply_filters(
     30        'widget_tag_cloud_args',
     31        $args
     32    )
     33  );
    2934
    3035        if ( ! $tag_cloud ) {
    3136                $tag_cloud = __( 'There’s no content to show here yet.' );