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 {
|
| 187 | 187 | public $update_count_callback; |
| 188 | 188 | |
| 189 | 189 | /** |
| | 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 | /** |
| 190 | 222 | * Whether it is a built-in taxonomy. |
| 191 | 223 | * |
| 192 | 224 | * @since 4.7.0 |
| … |
… |
final class WP_Taxonomy {
|
| 254 | 286 | 'rewrite' => true, |
| 255 | 287 | 'query_var' => $this->name, |
| 256 | 288 | 'update_count_callback' => '', |
| | 289 | 'show_in_rest' => false, |
| | 290 | 'rest_base' => false, |
| | 291 | 'rest_controller_class' => false, |
| 257 | 292 | '_builtin' => false, |
| 258 | 293 | ); |
| 259 | 294 | |