Skip to content

Prevent email notifications when users are created#3331

Merged
danielbachhuber merged 1 commit into
masterfrom
3182-prevent-email-notif
Aug 22, 2016
Merged

Prevent email notifications when users are created#3331
danielbachhuber merged 1 commit into
masterfrom
3182-prevent-email-notif

Conversation

@danielbachhuber
Copy link
Copy Markdown
Member

Email notifications should only be sent when --send-email is provided.

Fixes #3182

Email notifications should only be sent when `--send-email` is provided.
// do nothing
function wp_mail( $to ) {
// Log for testing purposes
WP_CLI::log( "WP-CLI test suite: Sent email to {$to}." );
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@srguglielmo Here's how I set up the tests, part one. wp_mail() writes to STDOUT...

@danielbachhuber danielbachhuber added this to the 0.25.0 milestone Aug 22, 2016
@danielbachhuber danielbachhuber merged commit 042ddca into master Aug 22, 2016
@danielbachhuber danielbachhuber deleted the 3182-prevent-email-notif branch August 22, 2016 21:17
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.

1 participant