Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update test wp_mail #124

Merged
merged 1 commit into from
Jun 7, 2021
Merged

Update test wp_mail #124

merged 1 commit into from
Jun 7, 2021

Conversation

aaemnnosttv
Copy link
Contributor

This PR updates the bundled test implementation of wp_mail to work slightly closer to the real implementation.

Most importantly, it returns true to indicate mail was successfully sent (this is how the function worked before as well). It also supports a potential array of recipients, as supported by the core function to avoid a potential array-to-string conversion error in the event an array is passed.

@aaemnnosttv aaemnnosttv requested a review from a team as a code owner June 6, 2021 21:44
@schlessera schlessera added this to the 3.0.15 milestone Jun 7, 2021
@schlessera schlessera merged commit 8443ace into wp-cli:master Jun 7, 2021
@aaemnnosttv aaemnnosttv deleted the patch-2 branch June 7, 2021 07:23
schlessera added a commit that referenced this pull request Jan 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants