[wp-trac] [WordPress Trac] #48681: WP_Taxonomy labels wrong initial type and documentation

WordPress Trac noreply at wordpress.org
Sun Nov 17 11:03:57 UTC 2019


#48681: WP_Taxonomy labels wrong initial type and documentation
-------------------------+-----------------------------
 Reporter:  alpipego     |      Owner:  (none)
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  Taxonomy     |    Version:  trunk
 Severity:  normal       |   Keywords:
  Focuses:               |
-------------------------+-----------------------------
 The initial value of `WP_Taxonomy::$labels` is an empty array but gets
 converted to a stdClass object. The docblock comment also states `array`
 even though the return correctly says object.

 The patch updates the inline documentation and the initial type of
 `$labels`.

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


More information about the wp-trac mailing list