Make WordPress Core

Opened 4 weeks ago

#52142 new defect (bug)

Declare `sort` and `args` properties of WP_Taxonomy

Reported by: johnbillion Owned by:
Milestone: Future Release Priority: normal
Severity: normal Version: 2.5
Component: Taxonomy Keywords: needs-patch good-first-bug
Focuses: Cc:


WP_Taxonomy supports two properties which are not declared on the class, sort and args. These are used in wp_set_object_terms() and wp_get_object_terms() to control the sort order of terms in the taxonomy.

These properties should be declared on the class with an initial value of null, added to the documentation for wp_register_taxonomy(), and added to the default args array in WP_Taxonomy::set_props().

These properties were introduced in [6851] and [7520].

Change History (0)

Note: See TracTickets for help on using tickets.