Fix wc_get_attribute

This commit is contained in:
Mike Jolley 2019-03-05 17:02:58 +00:00
parent a42bdf94d0
commit 0e943a38d7
1 changed files with 1 additions and 0 deletions

View File

@ -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;