Add a translators comment
This commit is contained in:
parent
148387ecb9
commit
a8bc07cf40
|
@ -925,6 +925,7 @@ class WC_AJAX {
|
|||
$validation_error = apply_filters( 'woocommerce_ajax_add_order_item_validation', $validation_error, $product, $order, $qty );
|
||||
|
||||
if ( $validation_error->get_error_code() ) {
|
||||
/* translators: %s: error message */
|
||||
throw new Exception( sprintf( __( 'Error: %s', 'woocommerce' ), $validation_error->get_error_message() ) );
|
||||
}
|
||||
$item_id = $order->add_product( $product, $qty );
|
||||
|
|
Loading…
Reference in New Issue