Update class-tainacan-rest-items-controller.php

grammar
This commit is contained in:
Adrian 2021-11-09 23:03:56 +02:00 committed by GitHub
parent 9ea86c5436
commit 66f5790649
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -1080,7 +1080,7 @@ class REST_Items_Controller extends REST_Controller {
} else {
$this->submission_rollback_new_terms();
return new \WP_REST_Response([
'error_message' => __('unable create submission ID.', 'tainacan'),
'error_message' => __('unable to create submission ID.', 'tainacan'),
], 400);
}
@ -1113,7 +1113,7 @@ class REST_Items_Controller extends REST_Controller {
$item_id = get_transient('tnc_transient_submission_' . $submission_id);
if($item_id === false) {
return new \WP_REST_Response([
'error_message' => __('submission ID not exist.', 'tainacan'),
'error_message' => __('submission ID does not exist.', 'tainacan'),
], 400);
}
$this->new_terms_ids = get_transient('tnc_transient_submission_' . $submission_id . '_new_terms_ids');