fix: ensure current user lists are initialized as an empty array#2043
Merged
miguelpeixe merged 1 commit intoreleasefrom Mar 3, 2026
Merged
fix: ensure current user lists are initialized as an empty array#2043miguelpeixe merged 1 commit intoreleasefrom
miguelpeixe merged 1 commit intoreleasefrom
Conversation
|
🎉 This PR is included in version 3.28.6-hotfix-memberships-guard-user-lists.1 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
laurelfulford
approved these changes
Mar 3, 2026
Contributor
laurelfulford
left a comment
There was a problem hiding this comment.
Thanks @miguelpeixe! 🚢
|
Hey @miguelpeixe, good job getting this PR merged! 🎉 Now, the Please check if this PR needs to be included in the "Upcoming Changes" and "Release Notes" doc. If it doesn't, simply remove the label. If it does, please add an entry to our shared document, with screenshots and testing instructions if applicable, then remove the label. Thank you! ❤️ |
matticbot
pushed a commit
that referenced
this pull request
Mar 3, 2026
## [3.28.6](v3.28.5...v3.28.6) (2026-03-03) ### Bug Fixes * ensure current user lists are initialized as an empty array if not an array ([#2043](#2043)) ([0afb1c6](0afb1c6))
|
🎉 This PR is included in version 3.28.6 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
All Submissions:
Changes proposed in this Pull Request:
Newspack_Newsletters_Subscription::get_contact_lists( $user_email )can return aWP_Error, which will throw an exception if used as an argument inarray_diff().How to test the changes in this Pull Request:
Just make sure nothing stands out in the code.
Other information: