This commit is contained in:
Joshua T Flowers 2019-11-14 13:05:28 +08:00 committed by GitHub
parent 360b0f1651
commit 87edceabf3
1 changed files with 2 additions and 2 deletions

View File

@ -118,7 +118,7 @@ class OnboardingTasks extends \WC_REST_Data_Controller {
if ( file_exists( $file ) && class_exists( 'WC_Product_CSV_Importer' ) ) { if ( file_exists( $file ) && class_exists( 'WC_Product_CSV_Importer' ) ) {
// Override locale so we can return mappings from WooCommerce in English language stores. // Override locale so we can return mappings from WooCommerce in English language stores.
global $locale; global $locale;
$locale = false; // phpcs:ignore WordPress.WP.GlobalVariablesOverride.OverrideProhibited $locale = false; // phpcs:ignore WordPress.WP.GlobalVariablesOverride.Prohibited
$importer_class = apply_filters( 'woocommerce_product_csv_importer_class', 'WC_Product_CSV_Importer' ); $importer_class = apply_filters( 'woocommerce_product_csv_importer_class', 'WC_Product_CSV_Importer' );
$args = array( $args = array(
'parse' => true, 'parse' => true,
@ -298,7 +298,7 @@ class OnboardingTasks extends \WC_REST_Data_Controller {
return $cover . ' return $cover . '
<!-- wp:heading {"align":"center"} --> <!-- wp:heading {"align":"center"} -->
<h2 class="has-text-align-center">' . __( 'New products', 'woocommerce-admin' ) . '</h2> <h2 style="text-align:center">' . __( 'New Products', 'woocommerce-admin' ) . '</h2>
<!-- /wp:heading --> <!-- /wp:heading -->
<!-- wp:woocommerce/product-new /--> ' . <!-- wp:woocommerce/product-new /--> ' .