Make WordPress Core


Ignore:
Timestamp:
01/31/2021 11:13:50 PM (6 years ago)
Author:
johnbillion
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/taxonomy.php

    r49963 r50116  
    415415 *         @type string $description  Description for default term. Default empty.
    416416 *     }
     417 *     @type bool          $sort                  Whether terms in this taxonomy should be sorted in the order they are
     418 *                                                provided to `wp_set_object_terms()`. Default null which equates to false.
     419 *     @type array         $args                  Array of arguments to automatically use inside `wp_get_object_terms()`
     420 *                                                for this taxonomy.
    417421 *     @type bool          $_builtin              This taxonomy is a "built-in" taxonomy. INTERNAL USE ONLY!
    418422 *                                                Default false.
Note: See TracChangeset for help on using the changeset viewer.