Merge pull request #21704 from woocommerce/fix/reduce-strings
Merged similar strings to reduce number of translateable strings
This commit is contained in:
commit
3e30682b41
|
@ -686,7 +686,7 @@ abstract class WC_REST_Terms_Controller extends WC_REST_Controller {
|
||||||
$params['context']['default'] = 'view';
|
$params['context']['default'] = 'view';
|
||||||
|
|
||||||
$params['exclude'] = array(
|
$params['exclude'] = array(
|
||||||
'description' => __( 'Ensure result set excludes specific ids.', 'woocommerce' ),
|
'description' => __( 'Ensure result set excludes specific IDs.', 'woocommerce' ),
|
||||||
'type' => 'array',
|
'type' => 'array',
|
||||||
'items' => array(
|
'items' => array(
|
||||||
'type' => 'integer',
|
'type' => 'integer',
|
||||||
|
|
|
@ -391,7 +391,7 @@ class WC_REST_Product_Reviews_Controller extends WC_REST_Controller {
|
||||||
* Do not allow a comment to be created with missing or empty comment_content. See wp_handle_comment_submission().
|
* Do not allow a comment to be created with missing or empty comment_content. See wp_handle_comment_submission().
|
||||||
*/
|
*/
|
||||||
if ( empty( $prepared_review['comment_content'] ) ) {
|
if ( empty( $prepared_review['comment_content'] ) ) {
|
||||||
return new WP_Error( 'wc_rest_review_content_invalid', __( 'Invalid product review content.', 'woocommerce' ), array( 'status' => 400 ) );
|
return new WP_Error( 'woocommerce_rest_review_content_invalid', __( 'Invalid review content.', 'woocommerce' ), array( 'status' => 400 ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
// Setting remaining values before wp_insert_comment so we can use wp_allow_comment().
|
// Setting remaining values before wp_insert_comment so we can use wp_allow_comment().
|
||||||
|
@ -926,7 +926,7 @@ class WC_REST_Product_Reviews_Controller extends WC_REST_Controller {
|
||||||
$params['context']['default'] = 'view';
|
$params['context']['default'] = 'view';
|
||||||
|
|
||||||
$params['after'] = array(
|
$params['after'] = array(
|
||||||
'description' => __( 'Limit response to reviews published after a given ISO8601 compliant date.', 'woocommerce' ),
|
'description' => __( 'Limit response to resources published after a given ISO8601 compliant date.', 'woocommerce' ),
|
||||||
'type' => 'string',
|
'type' => 'string',
|
||||||
'format' => 'date-time',
|
'format' => 'date-time',
|
||||||
);
|
);
|
||||||
|
|
|
@ -662,7 +662,7 @@ class WC_Countries {
|
||||||
'priority' => 50,
|
'priority' => 50,
|
||||||
),
|
),
|
||||||
'address_2' => array(
|
'address_2' => array(
|
||||||
'label' => __( 'Apartment, suite, or unit.', 'woocommerce' ),
|
'label' => __( 'Apartment, suite, unit etc.', 'woocommerce' ),
|
||||||
'label_class' => 'screen-reader-text',
|
'label_class' => 'screen-reader-text',
|
||||||
'placeholder' => esc_attr( $address_2_placeholder ),
|
'placeholder' => esc_attr( $address_2_placeholder ),
|
||||||
'class' => array( 'form-row-wide', 'address-field' ),
|
'class' => array( 'form-row-wide', 'address-field' ),
|
||||||
|
|
Loading…
Reference in New Issue