From 70afb233cffb7aec85e9e4d72f2d3b3c8ac402d4 Mon Sep 17 00:00:00 2001 From: Dwindi Ramadhana Date: Sat, 27 Dec 2025 00:17:19 +0700 Subject: [PATCH] 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. --- includes/Api/ProductsController.php | 7 ------- 1 file changed, 7 deletions(-) diff --git a/includes/Api/ProductsController.php b/includes/Api/ProductsController.php index daec1d2..869fbee 100644 --- a/includes/Api/ProductsController.php +++ b/includes/Api/ProductsController.php @@ -918,13 +918,6 @@ class ProductsController { 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;