mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-03 06:57:35 +01:00
Taxonomy: Reorder some WP_Taxonomy
properties for consistency.
Follow-up to [48356], [50116]. See #52142. Built from https://develop.svn.wordpress.org/trunk@50119 git-svn-id: http://core.svn.wordpress.org/trunk@49798 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
651aeebe67
commit
8bd85a870b
@ -209,15 +209,6 @@ final class WP_Taxonomy {
|
||||
*/
|
||||
public $rest_controller_class;
|
||||
|
||||
/**
|
||||
* The default term name for this taxonomy. If you pass an array you have
|
||||
* to set 'name' and optionally 'slug' and 'description'.
|
||||
*
|
||||
* @since 5.5.0
|
||||
* @var array|string
|
||||
*/
|
||||
public $default_term;
|
||||
|
||||
/**
|
||||
* The controller instance for this taxonomy's REST API endpoints.
|
||||
*
|
||||
@ -228,6 +219,15 @@ final class WP_Taxonomy {
|
||||
*/
|
||||
public $rest_controller;
|
||||
|
||||
/**
|
||||
* The default term name for this taxonomy. If you pass an array you have
|
||||
* to set 'name' and optionally 'slug' and 'description'.
|
||||
*
|
||||
* @since 5.5.0
|
||||
* @var array|string
|
||||
*/
|
||||
public $default_term;
|
||||
|
||||
/**
|
||||
* Whether terms in this taxonomy should be sorted in the order they are provided to `wp_set_object_terms()`.
|
||||
*
|
||||
@ -321,9 +321,9 @@ final class WP_Taxonomy {
|
||||
'rest_base' => false,
|
||||
'rest_controller_class' => false,
|
||||
'default_term' => null,
|
||||
'_builtin' => false,
|
||||
'sort' => null,
|
||||
'args' => null,
|
||||
'_builtin' => false,
|
||||
);
|
||||
|
||||
$args = array_merge( $defaults, $args );
|
||||
|
@ -13,7 +13,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '5.7-alpha-50118';
|
||||
$wp_version = '5.7-alpha-50119';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
Loading…
Reference in New Issue
Block a user