Fix wc_get_attribute
This commit is contained in:
parent
a42bdf94d0
commit
0e943a38d7
|
@ -432,6 +432,7 @@ function wc_get_attribute( $id ) {
|
|||
return null;
|
||||
}
|
||||
|
||||
$data = $attributes[ $id ];
|
||||
$attribute = new stdClass();
|
||||
$attribute->id = (int) $data->attribute_id;
|
||||
$attribute->name = $data->attribute_label;
|
||||
|
|
Loading…
Reference in New Issue