parent
a45ff0b6de
commit
2cb66fe4b9
|
@ -166,7 +166,7 @@ class WC_Product_Variation extends WC_Product {
|
|||
* @return string
|
||||
*/
|
||||
public function get_permalink() {
|
||||
return add_query_arg( $this->variation_data, get_permalink( $this->id ) );
|
||||
return add_query_arg( array_filter( $this->variation_data ), get_permalink( $this->id ) );
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue