diff --git a/wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php b/wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php index 749a6d6870..477df8ba48 100644 --- a/wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php +++ b/wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php @@ -415,7 +415,7 @@ class WP_REST_Terms_Controller extends WP_REST_Controller { if ( $term_id = $term->get_error_data( 'term_exists' ) ) { $existing_term = get_term( $term_id, $this->taxonomy ); $term->add_data( $existing_term->term_id, 'term_exists' ); - $term->add_data( array( 'status' => 409 ) ); + $term->add_data( array( 'status' => 409, 'term_id' => $term_id ) ); } return $term; diff --git a/wp-includes/version.php b/wp-includes/version.php index 8886867bda..be1bcba2d2 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.9.3-alpha-42577'; +$wp_version = '4.9.3-alpha-42578'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.