Make WordPress Core

Ticket #39987: 39987.1.diff

File 39987.1.diff, 1.4 KB (added by danielbachhuber, 10 years ago)
  • src/wp-includes/class-wp-taxonomy.php

    diff --git a/src/wp-includes/class-wp-taxonomy.php b/src/wp-includes/class-wp-taxonomy.php
    index 3a69b76551..e337bccc58 100644
    a b final class WP_Taxonomy {  
    187187        public $update_count_callback;
    188188
    189189        /**
     190         * Whether this taxonomy should appear in the REST API.
     191         *
     192         * Default false. If true, standard endpoints will be registered with
     193         * respect to $rest_base and $rest_controller_class.
     194         *
     195         * @since 4.7.4
     196         * @access public
     197         * @var bool $show_in_rest
     198         */
     199        public $show_in_rest;
     200
     201        /**
     202         * The base path for this taxonomy's REST API endpoints.
     203         *
     204         * @since 4.7.4
     205         * @access public
     206         * @var string|bool $rest_base
     207         */
     208        public $rest_base;
     209
     210        /**
     211         * The controller for this taxonomy's REST API endpoints.
     212         *
     213         * Custom controllers must subclass WP_REST_Controller.
     214         *
     215         * @since 4.7.4
     216         * @access public
     217         * @var string|bool $rest_controller_class
     218         */
     219        public $rest_controller_class;
     220
     221        /**
    190222         * Whether it is a built-in taxonomy.
    191223         *
    192224         * @since 4.7.0
    … … final class WP_Taxonomy {  
    254286                        'rewrite'               => true,
    255287                        'query_var'             => $this->name,
    256288                        'update_count_callback' => '',
     289                        'show_in_rest'          => false,
     290                        'rest_base'             => false,
     291                        'rest_controller_class' => false,
    257292                        '_builtin'              => false,
    258293                );
    259294