parent
19a4648a5a
commit
2d3d401d67
|
@ -308,7 +308,7 @@ class WC_API_Products extends WC_API_Resource {
|
|||
);
|
||||
|
||||
if ( ! empty( $data['name'] ) ) {
|
||||
array_merge( $new_product, array( 'post_name' => sanitize_title( $data['name'] ) ) );
|
||||
$new_product = array_merge( $new_product, array( 'post_name' => sanitize_title( $data['name'] ) ) );
|
||||
}
|
||||
|
||||
// Attempts to create the new product.
|
||||
|
|
Loading…
Reference in New Issue