use slug sanitization on product export category slugs

This commit is contained in:
Ron Rennick 2019-01-02 10:49:21 -04:00
parent 13744479f1
commit 74c9f16377
1 changed files with 1 additions and 1 deletions

View File

@ -86,7 +86,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 );
}
/**