- Timestamp:
- 05/10/2017 07:40:56 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php
r40377 r40606 397 397 if ( isset( $request['parent'] ) ) { 398 398 if ( ! is_taxonomy_hierarchical( $this->taxonomy ) ) { 399 return new WP_Error( 'rest_taxonomy_not_hierarchical', __( 'Can 399 return new WP_Error( 'rest_taxonomy_not_hierarchical', __( 'Cannot set parent term, taxonomy is not hierarchical.' ), array( 'status' => 400 ) ); 400 400 } 401 401 … … 503 503 if ( isset( $request['parent'] ) ) { 504 504 if ( ! is_taxonomy_hierarchical( $this->taxonomy ) ) { 505 return new WP_Error( 'rest_taxonomy_not_hierarchical', __( 'Can 505 return new WP_Error( 'rest_taxonomy_not_hierarchical', __( 'Cannot set parent term, taxonomy is not hierarchical.' ), array( 'status' => 400 ) ); 506 506 } 507 507
Note: See TracChangeset
for help on using the changeset viewer.