mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-10-04 22:57:20 +00:00
Taxonomy: Declare and document the sort and args properties of the WP_Taxonomy class.
These properties have been in use since 2.5 and 2.6 but were never added as actual properties on the class. This fixes that. Props gunnard, SergeyBiryukov Fixes #52142 git-svn-id: https://develop.svn.wordpress.org/trunk@50116 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -414,6 +414,10 @@ function is_taxonomy_hierarchical( $taxonomy ) {
|
||||
* @type string $slug Slug for default term. Default empty.
|
||||
* @type string $description Description for default term. Default empty.
|
||||
* }
|
||||
* @type bool $sort Whether terms in this taxonomy should be sorted in the order they are
|
||||
* provided to `wp_set_object_terms()`. Default null which equates to false.
|
||||
* @type array $args Array of arguments to automatically use inside `wp_get_object_terms()`
|
||||
* for this taxonomy.
|
||||
* @type bool $_builtin This taxonomy is a "built-in" taxonomy. INTERNAL USE ONLY!
|
||||
* Default false.
|
||||
* }
|
||||
|
||||
Reference in New Issue
Block a user