fix: Syntax error in ProductsController - fix broken docblock
Fixed duplicate code and broken docblock comment that was causing PHP syntax error. The multi_edit tool had issues with the large edit and left broken code.
This commit is contained in:
@@ -918,13 +918,6 @@ class ProductsController {
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Private meta (starts with _) - check if allowed
|
|
||||||
// Core has ZERO defaults - plugins register via filter
|
|
||||||
$allowed_private = apply_filters('woonoow/product_allowed_private_meta', [], $product);
|
|
||||||
|
|
||||||
if (in_array($key, $allowed_private, true)) {
|
|
||||||
$meta_data[$key] = $value;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return $meta_data;
|
return $meta_data;
|
||||||
|
|||||||
Reference in New Issue
Block a user