WordPress.org

Make WordPress Core

Opened 30 hours ago

Last modified 7 hours ago

#41108 new enhancement

Better documentation for the labels array of get_taxonomy_labels() function

Reported by: truongwp Owned by:
Milestone: 4.9 Priority: normal
Severity: normal Version: 3.0
Component: Taxonomy Keywords: has-patch
Focuses: docs Cc:

Description

Make documentation for the labels array of get_taxonomy_labels() function better and remove @todo tag.

Attachments (1)

41108.diff (5.5 KB) - added by truongwp 30 hours ago.

Download all attachments as: .zip

Change History (5)

@truongwp
30 hours ago

#1 @truongwp
30 hours ago

  • Keywords has-patch added

#2 @netweb
24 hours ago

  • Milestone changed from Awaiting Review to 4.9

#3 @DrewAPicture
11 hours ago

  • Version changed from trunk to 3.0

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.

#4 @truongwp
7 hours ago

Hi @DrewAPicture,

I had a bit confusion here. I will update the patch.

Thank you.

Note: See TracTickets for help on using tickets.