Skip to content

Commit

Permalink
fix: use wc_clean instead of sanitize_title while saving attributes n…
Browse files Browse the repository at this point in the history
…ame (#527)
  • Loading branch information
saimonh3 authored and sabbir1991 committed Jan 25, 2019
1 parent 07db0e3 commit 99c7863
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/wc-functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ function dokan_process_product_meta( $post_id, $data = [] ) {
$attributes = array();

if ( isset( $data['attribute_names'] ) && is_array( $data['attribute_names'] ) && isset( $data['attribute_values'] ) && is_array( $data['attribute_values'] ) ) {
$attribute_names = array_map( 'sanitize_title', $data['attribute_names'] );
$attribute_names = array_map( 'wc_clean', $data['attribute_names'] );

$attribute_values = array();

Expand Down

0 comments on commit 99c7863

Please sign in to comment.