From af9d09e9713d5003cfb0b358a8118322dba5510a Mon Sep 17 00:00:00 2001 From: Paolo Luigi Scala Date: Fri, 27 Oct 2023 16:45:56 +0200 Subject: [PATCH] Fix bug preventing notifications to be fetched --- admin/class-yoast-notification-center.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/admin/class-yoast-notification-center.php b/admin/class-yoast-notification-center.php index ce5529d58ee..dfb97e80e19 100644 --- a/admin/class-yoast-notification-center.php +++ b/admin/class-yoast-notification-center.php @@ -915,10 +915,10 @@ private function maybe_unset_notification_user_field( $user_id, $notifications ) unset( $serialized_notification['options']['user'] ); $serialized_notification['options']['user_id'] = $user_id; - $processed_notifications[] = $this->array_to_notification( $serialized_notification ); - + $this->notifications_need_storage = true; } + $processed_notifications[] = $this->array_to_notification( $serialized_notification ); } return $processed_notifications;