#34377 closed defect (bug) (fixed)
Another unexpected break in behavior for wp_new_user_notification()
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 4.4 | Priority: | normal |
| Severity: | normal | Version: | |
| Component: | Users | Keywords: | has-patch |
| Focuses: | Cc: |
Description
wp_new_user_notification() originally sent two emails if $password was provided: one to the admin, and another to the created user.
r33620 "restored" this behavior, but then r34116 disabled this behavior because the deprecated $password argument isn't checked in this conditional:
if ( 'admin' === $notify || empty( $notify ) ) {
return;
}
If $password is provided, I'd expect the conditional to fail.
I think that $notify could default to 'both', in which case empty( $notify ) could just be removed.
Discovered in https://github.com/wp-cli/wp-cli/pull/2163
Attachments (1)
Change History (6)
This ticket was mentioned in Slack in #core by danielbachhuber. View the logs.
10 years ago
This ticket was mentioned in Slack in #core by helen. View the logs.
10 years ago
Note: See
TracTickets for help on using
tickets.
In 35735: