Changeset 43756
- Timestamp:
- 10/18/2018 08:31:58 PM (6 years ago)
- Location:
- branches/5.0
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.0
-
branches/5.0/src/wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php
r43737 r43756 419 419 $existing_term = get_term( $term_id, $this->taxonomy ); 420 420 $term->add_data( $existing_term->term_id, 'term_exists' ); 421 $term->add_data( array( 'status' => 40 9, 'term_id' => $term_id ) );421 $term->add_data( array( 'status' => 400, 'term_id' => $term_id ) ); 422 422 } 423 423 -
branches/5.0/tests/phpunit/tests/rest-api/rest-categories-controller.php
r43713 r43756 698 698 699 699 $response = $this->server->dispatch( $request ); 700 $this->assertEquals( 40 9, $response->get_status() );700 $this->assertEquals( 400, $response->get_status() ); 701 701 $data = $response->get_data(); 702 702 $this->assertEquals( 'term_exists', $data['code'] );
Note: See TracChangeset
for help on using the changeset viewer.