- Timestamp:
- 08/17/2018 01:50:26 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php
r43440 r43571 75 75 76 76 register_rest_route( 77 $this->namespace, '/' . $this->rest_base, array( 77 $this->namespace, 78 '/' . $this->rest_base, 79 array( 78 80 array( 79 81 'methods' => WP_REST_Server::READABLE, … … 93 95 94 96 register_rest_route( 95 $this->namespace, '/' . $this->rest_base . '/(?P<id>[\d]+)', array( 97 $this->namespace, 98 '/' . $this->rest_base . '/(?P<id>[\d]+)', 99 array( 96 100 'args' => array( 97 101 'id' => array( … … 423 427 $existing_term = get_term( $term_id, $this->taxonomy ); 424 428 $term->add_data( $existing_term->term_id, 'term_exists' ); 425 $term->add_data( array( 'status' => 400, 'term_id' => $term_id ) ); 429 $term->add_data( 430 array( 431 'status' => 400, 432 'term_id' => $term_id, 433 ) 434 ); 426 435 } 427 436
Note: See TracChangeset
for help on using the changeset viewer.