[wp-trac] [WordPress Trac] #41108: Better documentation for the labels array of get_taxonomy_labels() function

WordPress Trac noreply at wordpress.org
Wed Jun 21 23:04:34 UTC 2017


#41108: Better documentation for the labels array of get_taxonomy_labels() function
-------------------------+-------------------
 Reporter:  truongwp     |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  4.9
Component:  Taxonomy     |     Version:  3.0
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |     Focuses:  docs
-------------------------+-------------------
Changes (by DrewAPicture):

 * version:  trunk => 3.0


Comment:

 Hi @truongwp, thanks for the patch. I think you're on the right track,
 though it's a bit misleading to document the labels as first-level
 properties of the `WP_Taxonomy` object, which they really aren't.

 So rather than document `$tax`, I think the most straightforward way to do
 it would be to document all of the labels in the `@return` notation
 instead.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/41108#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list