Make WordPress Core

Opened 12 months ago

Last modified 12 months ago

#59363 new defect (bug)

wp_tag_cloud and apply_filters

Reported by: steffenkrueger's profile steffenkrueger Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 6.3.1
Component: Editor Keywords:
Focuses: Cc:

Description (last modified by SergeyBiryukov)

Line https://github.com/WordPress/wordpress-develop/blob/trunk/src/wp-includes/blocks/tag-cloud.php#L28

$tag_cloud = wp_tag_cloud( $args );

has to be changed to

  $tag_cloud = wp_tag_cloud(
    apply_filters(
        'widget_tag_cloud_args',
        $args
    )
  );

to be in line with documentation:
https://developer.wordpress.org/reference/hooks/widget_tag_cloud_args/

I will attach a patch as documented here:
https://make.wordpress.org/core/handbook/contribute/git/

Attachments (1)

tag_cloud_apply_filter.diff (660 bytes) - added by steffenkrueger 12 months ago.

Download all attachments as: .zip

Change History (2)

#1 @SergeyBiryukov
12 months ago

  • Component changed from General to Editor
  • Description modified (diff)
Note: See TracTickets for help on using tickets.