Opened 6 years ago
Closed 6 years ago
#47877 closed enhancement (fixed)
register_taxonomy: argument type in docblock comment does not match with the parameter type
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 5.3 | Priority: | low |
Severity: | normal | Version: | |
Component: | Taxonomy | Keywords: | good-first-bug |
Focuses: | docs | Cc: |
Description
In function register_taxonomy
, located in /wp-includes/taxonomy.php
:
* @type string $query_var
should be:
* @type bool|string $query_var
since false
could be passed as an argument for this parameter.
Current DevHub documentation:
"query_var - (string) Sets the query var key for this taxonomy. Default $taxonomy key. If false, a taxonomy cannot be loaded at ?{query_var}={term_slug}. If a string, the query ?{query_var}={term_slug} will be valid."
Attachments (1)
Change History (5)
Note: See
TracTickets for help on using
tickets.
Created patch.