[2.4] [API] Avoid undefined $taxonomy warnings while save variable attributes, closes #9456
This commit is contained in:
parent
a7028e7734
commit
4522b68a47
|
@ -1925,6 +1925,7 @@ class WC_API_Products extends WC_API_Resource {
|
|||
continue;
|
||||
}
|
||||
|
||||
$taxonomy = 0;
|
||||
$_attribute = array();
|
||||
|
||||
if ( isset( $attribute['slug'] ) ) {
|
||||
|
|
|
@ -1462,6 +1462,7 @@ class WC_API_Products extends WC_API_Resource {
|
|||
continue;
|
||||
}
|
||||
|
||||
$taxonomy = 0;
|
||||
$_attribute = array();
|
||||
|
||||
if ( isset( $attribute['slug'] ) ) {
|
||||
|
|
Loading…
Reference in New Issue