[wp-trac] [WordPress Trac] #52142: Declare `sort` and `args` properties of WP_Taxonomy

WordPress Trac noreply at wordpress.org
Mon Dec 21 16:35:47 UTC 2020


#52142: Declare `sort` and `args` properties of WP_Taxonomy
--------------------------+----------------------------------------
 Reporter:  johnbillion   |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Future Release
Component:  Taxonomy      |    Version:  2.5
 Severity:  normal        |   Keywords:  needs-patch good-first-bug
  Focuses:                |
--------------------------+----------------------------------------
 `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].

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


More information about the wp-trac mailing list