#52348 closed defect (bug) (fixed)
Docs: inconsistency in `wp_tag_cloud` DocBlock concerning `$number` default value
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 5.7 | Priority: | normal |
Severity: | normal | Version: | 5.1 |
Component: | Taxonomy | Keywords: | has-patch |
Focuses: | docs | Cc: |
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.
3 years ago
#4
Trac ticket: https://core.trac.wordpress.org/ticket/52348
#5
@
3 years ago
- Owner set to SergeyBiryukov
- Resolution set to fixed
- Status changed from new to closed
In 50009:
hellofromtonya commented on PR #913:
3 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.
Thanks for the patch! Introduced in [42658] / #42019.