Merge pull request #22320 from Prospress/fix/22197

use slug sanitization on product export category slugs
This commit is contained in:
Claudiu Lodromanean 2019-01-16 09:31:43 -08:00 committed by GitHub
commit 86f05bbd7a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -89,7 +89,7 @@ class WC_Product_CSV_Exporter extends WC_CSV_Batch_Exporter {
* @return void
*/
public function set_product_category_to_export( $product_category_to_export ) {
$this->product_category_to_export = array_map( 'wc_clean', $product_category_to_export );
$this->product_category_to_export = array_map( 'sanitize_title_with_dashes', $product_category_to_export );
}
/**