[wp-trac] [WordPress Trac] #59363: wp_tag_cloud and apply_filters
WordPress Trac
noreply at wordpress.org
Fri Sep 15 10:19:34 UTC 2023
#59363: wp_tag_cloud and apply_filters
----------------------------+------------------------------
Reporter: steffenkrueger | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Editor | Version: 6.3.1
Severity: normal | Resolution:
Keywords: | Focuses:
----------------------------+------------------------------
Changes (by SergeyBiryukov):
* component: General => Editor
Old description:
> 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/
New description:
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/
--
--
Ticket URL: <https://core.trac.wordpress.org/ticket/59363#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list