Make WordPress Core

Changeset 50119


Ignore:
Timestamp:
02/01/2021 11:53:16 AM (4 years ago)
Author:
SergeyBiryukov
Message:

Taxonomy: Reorder some WP_Taxonomy properties for consistency.

Follow-up to [48356], [50116].

See #52142.

File:
1 edited

Legend:

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

    r50116 r50119  
    211211
    212212    /**
     213     * The controller instance for this taxonomy's REST API endpoints.
     214     *
     215     * Lazily computed. Should be accessed using {@see WP_Taxonomy::get_rest_controller()}.
     216     *
     217     * @since 5.5.0
     218     * @var WP_REST_Controller $rest_controller
     219     */
     220    public $rest_controller;
     221
     222    /**
    213223     * The default term name for this taxonomy. If you pass an array you have
    214224     * to set 'name' and optionally 'slug' and 'description'.
     
    218228     */
    219229    public $default_term;
    220 
    221     /**
    222      * The controller instance for this taxonomy's REST API endpoints.
    223      *
    224      * Lazily computed. Should be accessed using {@see WP_Taxonomy::get_rest_controller()}.
    225      *
    226      * @since 5.5.0
    227      * @var WP_REST_Controller $rest_controller
    228      */
    229     public $rest_controller;
    230230
    231231    /**
     
    322322            'rest_controller_class' => false,
    323323            'default_term'          => null,
    324             '_builtin'              => false,
    325324            'sort'                  => null,
    326325            'args'                  => null,
     326            '_builtin'              => false,
    327327        );
    328328
Note: See TracChangeset for help on using the changeset viewer.