#52348 closed defect (bug) (fixed)
Docs: inconsistency in `wp_tag_cloud` DocBlock concerning `$number` default value
| Reported by: | audrasjb | Owned by: | SergeyBiryukov |
|---|---|---|---|
| Priority: | normal | Milestone: | 5.7 |
| Component: | Taxonomy | Version: | 5.1 |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: | docs |
Description
In wp_tag_cloud(), we have the following documentation:
* @type int $number The number of tags to display. Accepts any positive integer * or zero to return all. Default 0 (all tags).
But here are the default values for $args:
$defaults = array( 'smallest' => 8, 'largest' => 22, 'unit' => 'pt', 'number' => 45, 'format' => 'flat', 'separator' => "\n", 'orderby' => 'name', 'order' => 'ASC', 'exclude' => '', 'include' => '', 'link' => 'view', 'taxonomy' => 'post_tag', 'post_type' => '', 'echo' => true, 'show_count' => 0, );
We should update the DocBlock accordingly to the real default value.
Attachments (1)
Change History (7)
This ticket was mentioned in PR #913 on WordPress/wordpress-develop by pawki07.
5 years ago
#4
Trac ticket: https://core.trac.wordpress.org/ticket/52348
hellofromtonya commented on PR #913:
5 years ago
#6
Merged in changeset https://core.trac.wordpress.org/changeset/50009 and https://core.trac.wordpress.org/changeset/50008
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Thanks for the patch! Introduced in [42658] / #42019.