Commit c7a2ccecb2a for woocommerce
commit c7a2ccecb2a356075c7b288f4a78bd1c17ee5be6
Author: Chris Lilitsas <1105590+xristos3490@users.noreply.github.com>
Date: Thu Sep 17 16:40:41 2026 +0300
Fix Back in Stock notifications customer filter returning wrong results (#68813)
fix: Back in Stock admin customer filter returning wrong notifications
diff --git a/plugins/woocommerce/changelog/wooplug-7768-bis-admin-customer-filter b/plugins/woocommerce/changelog/wooplug-7768-bis-admin-customer-filter
new file mode 100644
index 00000000000..c4fb7dee7e4
--- /dev/null
+++ b/plugins/woocommerce/changelog/wooplug-7768-bis-admin-customer-filter
@@ -0,0 +1,4 @@
+Significance: patch
+Type: fix
+
+Fix the customer filter on the Back in Stock notifications list table returning the wrong notifications.
diff --git a/plugins/woocommerce/src/Internal/StockNotifications/Admin/ListTable.php b/plugins/woocommerce/src/Internal/StockNotifications/Admin/ListTable.php
index 1c6fdfb8ec1..33e3d6dd011 100644
--- a/plugins/woocommerce/src/Internal/StockNotifications/Admin/ListTable.php
+++ b/plugins/woocommerce/src/Internal/StockNotifications/Admin/ListTable.php
@@ -385,8 +385,7 @@ class ListTable extends \WP_List_Table {
}
if ( ! empty( $_GET['customer_stock_notifications_customer_filter'] ) ) { // phpcs:ignore WordPress.Security.NonceVerification.Recommended
- $filter = absint( wp_unslash( $_GET['customer_stock_notifications_customer_filter'] ) ); // phpcs:ignore WordPress.Security.NonceVerification.Recommended
- $query_args['user_id'] = array( $filter );
+ $query_args['user_id'] = absint( wp_unslash( $_GET['customer_stock_notifications_customer_filter'] ) ); // phpcs:ignore WordPress.Security.NonceVerification.Recommended
}
$query_args['return'] = 'objects';