Changeset 51964 for trunk/src/wp-includes/class-wp-taxonomy.php
- Timestamp:
- 11/01/2021 03:26:06 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-taxonomy.php
r50119 r51964 199 199 */ 200 200 public $rest_base; 201 202 /** 203 * The namespace for this taxonomy's REST API endpoints. 204 * 205 * @since 5.9 206 * @var string|bool $rest_namespace 207 */ 208 public $rest_namespace; 201 209 202 210 /** … … 320 328 'show_in_rest' => false, 321 329 'rest_base' => false, 330 'rest_namespace' => false, 322 331 'rest_controller_class' => false, 323 332 'default_term' => null, … … 383 392 if ( null === $args['show_in_quick_edit'] ) { 384 393 $args['show_in_quick_edit'] = $args['show_ui']; 394 } 395 396 // If not set, default rest_namespace to wp/v2 if show_in_rest is true. 397 if ( false === $args['rest_namespace'] && ! empty( $args['show_in_rest'] ) ) { 398 $args['rest_namespace'] = 'wp/v2'; 385 399 } 386 400
Note: See TracChangeset
for help on using the changeset viewer.