terminology fix - inform -> specify
This commit is contained in:
parent
ff6d9924fd
commit
9f3254eec1
|
@ -246,7 +246,7 @@ class REST_Background_Processes_Controller extends REST_Controller {
|
|||
|
||||
if ( !isset($body['status']) || ($body['status'] != 'open' && $body['status'] != 'closed') ) {
|
||||
return new \WP_REST_Response([
|
||||
'error_message' => __('Status must be informed', 'tainacan' ),
|
||||
'error_message' => __('Status must be specified', 'tainacan' ),
|
||||
'session_id' => $id
|
||||
], 400);
|
||||
}
|
||||
|
|
|
@ -126,7 +126,7 @@ class REST_Items_Controller extends REST_Controller {
|
|||
'type' => 'integer'
|
||||
),
|
||||
'status' => array(
|
||||
'description' => __('Try to assign the informed status to the duplicates if they validate. By default it will save them as drafts.', 'tainacan'),
|
||||
'description' => __('Try to assign the specified status to the duplicates if they validate. By default it will save them as drafts.', 'tainacan'),
|
||||
'type' => 'string'
|
||||
),
|
||||
)
|
||||
|
@ -364,7 +364,7 @@ class REST_Items_Controller extends REST_Controller {
|
|||
$args['post_parent'] = $item_id;
|
||||
$args['post_type'] = 'attachment';
|
||||
$args['post_status'] = 'any';
|
||||
|
||||
|
||||
unset($args['perm']);
|
||||
|
||||
$posts_query = new \WP_Query();
|
||||
|
@ -1027,7 +1027,7 @@ class REST_Items_Controller extends REST_Controller {
|
|||
$item_metadata_child = $this->submission_item_metadata($item_metadata_child, $request);
|
||||
if ($item_metadata_child instanceof \WP_REST_Response) {
|
||||
return $item_metadata_child;
|
||||
}
|
||||
}
|
||||
$parent_meta_id = $item_metadata_child->get_parent_meta_id();
|
||||
}
|
||||
}
|
||||
|
@ -1083,7 +1083,7 @@ class REST_Items_Controller extends REST_Controller {
|
|||
'error_message' => __('unable to create submission ID.', 'tainacan'),
|
||||
], 400);
|
||||
}
|
||||
|
||||
|
||||
} else {
|
||||
$this->submission_rollback_new_terms();
|
||||
return new \WP_REST_Response([
|
||||
|
@ -1122,7 +1122,7 @@ class REST_Items_Controller extends REST_Controller {
|
|||
$collection = $this->collections_repository->fetch($collection_id);
|
||||
$default_status = $collection->get_submission_default_status();
|
||||
$item->set_status($default_status);
|
||||
|
||||
|
||||
$TainacanMedia = \Tainacan\Media::get_instance();
|
||||
$files = $request->get_file_params();
|
||||
|
||||
|
|
|
@ -35,7 +35,7 @@ class __Bulk_Edit {
|
|||
*
|
||||
* The object can be initialized in three different ways:
|
||||
* 1. passing an array of Items IDs, using the items_ids params
|
||||
* 2. passing a query array, that will be passed to the fetch method of items repository to create the group (in this case you also need to inform the collection id)
|
||||
* 2. passing a query array, that will be passed to the fetch method of items repository to create the group (in this case you also need to specify the collection ID)
|
||||
* 3. passing an group ID, generated by this class in a previous initialization using one of the methods above.
|
||||
*
|
||||
* When initializing using methods 1 or 2, controllers should then call the get_id() method and store it if they want to perform future requests that wil affect this same group of items
|
||||
|
@ -72,7 +72,7 @@ class __Bulk_Edit {
|
|||
if (isset($params['query']) && is_array($params['query'])) {
|
||||
|
||||
if (!isset($params['collection_id']) || !is_numeric($params['collection_id'])) {
|
||||
throw new \Exception('Collection ID must be informed when creating a group via query');
|
||||
throw new \Exception('Collection ID must be specified when creating a group via query');
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -784,7 +784,7 @@ class Collection extends Entity {
|
|||
}
|
||||
|
||||
/**
|
||||
* Set enable submission with anonymous user
|
||||
* Set enable submission with anonymous user
|
||||
*
|
||||
* @param [string] $value
|
||||
*
|
||||
|
@ -806,7 +806,7 @@ class Collection extends Entity {
|
|||
}
|
||||
|
||||
/**
|
||||
* Set if submission items are allowes for the current collection.
|
||||
* Set if submission items are allowes for the current collection.
|
||||
*
|
||||
* @param [string] $value
|
||||
*
|
||||
|
@ -853,7 +853,7 @@ class Collection extends Entity {
|
|||
}
|
||||
|
||||
if( $this->is_cover_page_enabled() && !is_numeric( $this->get_cover_page_id() ) ) {
|
||||
$this->add_error('cover_page_id', __('cover page is enabled, please inform the page', 'tainacan'));
|
||||
$this->add_error('cover_page_id', __('cover page is enabled, please specify the page', 'tainacan'));
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
@ -42,7 +42,7 @@ class Bulk_Edit_Process extends Generic_Process {
|
|||
}
|
||||
|
||||
if (!isset($params['collection_id']) || !is_numeric($params['collection_id'])) {
|
||||
throw new \Exception('Collection ID must be informed when creating a group.');
|
||||
throw new \Exception('Collection ID must be specified when creating a group.');
|
||||
}
|
||||
|
||||
$this->set_group_id(uniqid());
|
||||
|
|
|
@ -405,7 +405,7 @@ class CSV extends Importer {
|
|||
<h5><?php _e('Empty value', 'tainacan'); ?></h5>
|
||||
</div>
|
||||
<div class="help-tooltip-body">
|
||||
<p><?php _e('The string representing a value not informed for the metadata. (e.g. \EMPTY)', 'tainacan'); ?></p>
|
||||
<p><?php _e('The string representing a value not specified for the metadata. (e.g. \EMPTY)', 'tainacan'); ?></p>
|
||||
</div>
|
||||
</div>
|
||||
</span>
|
||||
|
|
|
@ -79,7 +79,7 @@ class Term_Importer extends Importer {
|
|||
<h5><?php _e('Existing Taxonomy', 'tainacan'); ?></h5>
|
||||
</div>
|
||||
<div class="help-tooltip-body">
|
||||
<p><?php _e('Inform the taxonomy you want to import the terms to.', 'tainacan'); ?></p>
|
||||
<p><?php _e('Specify the taxonomy you want to import the terms to.', 'tainacan'); ?></p>
|
||||
<p><?php _e('Select an existing taxonomy or create a new one on the fly.', 'tainacan'); ?></p>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -106,7 +106,7 @@ class Term_Importer extends Importer {
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
<?php
|
||||
return ob_get_clean();
|
||||
|
|
Loading…
Reference in New Issue