Changeset 42354
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php
r42350 r42354 420 420 $existing_term = get_term( $term_id, $this->taxonomy ); 421 421 $term->add_data( $existing_term->term_id, 'term_exists' ); 422 $term->add_data( array( 'status' => 40 9, 'term_id' => $term_id ) );422 $term->add_data( array( 'status' => 400, 'term_id' => $term_id ) ); 423 423 } 424 424 -
trunk/tests/phpunit/tests/rest-api/rest-categories-controller.php
r42350 r42354 703 703 704 704 $response = $this->server->dispatch( $request ); 705 $this->assertEquals( 40 9, $response->get_status() );705 $this->assertEquals( 400, $response->get_status() ); 706 706 $data = $response->get_data(); 707 707 $this->assertEquals( 'term_exists', $data['code'] );
Note: See TracChangeset
for help on using the changeset viewer.