Merge branch 'master' into regenerate-warning
This commit is contained in:
commit
f642440b99
|
@ -378,7 +378,7 @@ class WC_REST_Report_Sales_V1_Controller extends WC_REST_Controller {
|
|||
),
|
||||
'date_min' => array(
|
||||
/* translators: %s: date format */
|
||||
'description' => sprintf( __( 'Return sales for a specific start date, the date need to be in the %s format.', 'woocommerce' ), 'YYYY-MM-AA' ),
|
||||
'description' => sprintf( __( 'Return sales for a specific start date, the date need to be in the %s format.', 'woocommerce' ), 'YYYY-MM-DD' ),
|
||||
'type' => 'string',
|
||||
'format' => 'date',
|
||||
'validate_callback' => 'wc_rest_validate_reports_request_arg',
|
||||
|
@ -386,7 +386,7 @@ class WC_REST_Report_Sales_V1_Controller extends WC_REST_Controller {
|
|||
),
|
||||
'date_max' => array(
|
||||
/* translators: %s: date format */
|
||||
'description' => sprintf( __( 'Return sales for a specific end date, the date need to be in the %s format.', 'woocommerce' ), 'YYYY-MM-AA' ),
|
||||
'description' => sprintf( __( 'Return sales for a specific end date, the date need to be in the %s format.', 'woocommerce' ), 'YYYY-MM-DD' ),
|
||||
'type' => 'string',
|
||||
'format' => 'date',
|
||||
'validate_callback' => 'wc_rest_validate_reports_request_arg',
|
||||
|
|
|
@ -133,7 +133,7 @@ abstract class WC_Product_Importer implements WC_Importer_Interface {
|
|||
public function get_params() {
|
||||
return $this->params;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Get file pointer position from the last read.
|
||||
*
|
||||
|
@ -503,7 +503,7 @@ abstract class WC_Product_Importer implements WC_Importer_Interface {
|
|||
* @param int $product_id Product ID.
|
||||
* @return int
|
||||
*/
|
||||
protected function get_attachment_id_from_url( $url, $product_id ) {
|
||||
public function get_attachment_id_from_url( $url, $product_id ) {
|
||||
if ( empty( $url ) ) {
|
||||
return 0;
|
||||
}
|
||||
|
@ -590,7 +590,7 @@ abstract class WC_Product_Importer implements WC_Importer_Interface {
|
|||
* @param string $name Attribute name.
|
||||
* @return int
|
||||
*/
|
||||
protected function get_attribute_taxonomy_id( $raw_name ) {
|
||||
public function get_attribute_taxonomy_id( $raw_name ) {
|
||||
global $wpdb, $wc_product_attributes;
|
||||
|
||||
// These are exported as labels, so convert the label to a name if possible first.
|
||||
|
|
|
@ -10,6 +10,8 @@
|
|||
"license": "GPL-3.0+",
|
||||
"main": "Gruntfile.js",
|
||||
"scripts": {
|
||||
"build": "grunt",
|
||||
"build-watch": "grunt watch",
|
||||
"test": "cross-env NODE_CONFIG_DIR='./tests/e2e-tests/config' BABEL_ENV=commonjs mocha \"tests/e2e-tests\" --compilers js:babel-register --recursive",
|
||||
"test:grep": "cross-env NODE_CONFIG_DIR='./tests/e2e-tests/config' BABEL_ENV=commonjs mocha \"tests/e2e-tests\" --compilers js:babel-register --grep ",
|
||||
"test:single": "cross-env NODE_CONFIG_DIR='./tests/e2e-tests/config' BABEL_ENV=commonjs mocha --compilers js:babel-register"
|
||||
|
|
Loading…
Reference in New Issue