[wp-trac] [WordPress Trac] #47877: register_taxonomy: argument type in docblock comment does not match with the parameter type

WordPress Trac noreply at wordpress.org
Wed Aug 14 17:28:41 UTC 2019


#47877: register_taxonomy: argument type in docblock comment does not match with
the parameter type
-------------------------+-----------------------------
 Reporter:  audrasjb     |      Owner:  (none)
     Type:  enhancement  |     Status:  new
 Priority:  low          |  Milestone:  Awaiting Review
Component:  Taxonomy     |    Version:
 Severity:  normal       |   Keywords:  needs-patch
  Focuses:  docs         |
-------------------------+-----------------------------
 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."

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/47877>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list