Opened 9 years ago
Closed 9 years ago
#37654 closed defect (bug) (fixed)
Documentation for widget_tag_cloud_args filter is wrong
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 4.7 | Priority: | normal |
| Severity: | normal | Version: | 2.8 |
| Component: | Taxonomy | Keywords: | good-first-bug has-patch |
| Focuses: | docs | Cc: |
Description
The docs say that it can be used to filter the taxonomy used in the Tag Cloud widget, but it does way more than that. Not only the taxonomy is being passed to the wp_tag_cloud() function, but instead the whole $args array:
<?php /** * Filters the taxonomy used in the Tag Cloud widget. * * @since 2.8.0 * @since 3.0.0 Added taxonomy drop-down. * * @see wp_tag_cloud() * * @param array $current_taxonomy The taxonomy to use in the tag cloud. Default 'tags'. */ $tag_cloud = wp_tag_cloud( apply_filters( 'widget_tag_cloud_args', array( 'taxonomy' => $current_taxonomy, 'echo' => false ) ) );
This needs to be reflected in the docs.
Attachments (1)
Change History (10)
#2
@
9 years ago
In addition to that, hash notation for the wp_tag_cloud() docblock would be great too.
This ticket was mentioned in Slack in #core by jeffpaul. View the logs.
9 years ago
This ticket was mentioned in Slack in #core by stevenkword. View the logs.
9 years ago
Note: See
TracTickets for help on using
tickets.
Second argument added in [34273] for #16125 in 4.4.