WordPress.org

Make WordPress Core

Opened 2 years ago

Last modified 15 months ago

#24411 new defect (bug)

New site email being sent despite registrationnotification set to no

Reported by: tomk-m Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 3.5.1
Component: Login and Registration Keywords: has-patch needs-testing
Focuses: multisite Cc:

Description

When a new site is created in wp-admin/network/site-new.php it sends an e-mail to the admin email address to say the site has been created (line 92 in WP 3.5.1).

I had assumed that the registrationnotification setting in wp-admin/network/settings.php would control this but it sends the e-mail regardless of this setting.

I believe that sending this email should respect the registrationnotification setting or a new configuration option should be added to prevent sending out these e-mails.

Attachments (1)

site-new.php.diff (1.2 KB) - added by tomk-m 2 years ago.
Patch to respect registrationnotification setting

Download all attachments as: .zip

Change History (4)

@tomk-m2 years ago

Patch to respect registrationnotification setting

comment:1 @tomk-m2 years ago

  • Keywords needs-testing added

comment:2 @SergeyBiryukov2 years ago

To be clear, the option currently only has an effect on newblog_notify_siteadmin(): tags/3.5.1/wp-includes/ms-functions.php#L1001.

The option label says: "Send the network admin an email notification every time someone registers a site or user account." (tags/3.5.1/wp-admin/network/settings.php#L127).

comment:3 @jeremyfelt15 months ago

  • Component changed from Network Admin to Login and Registration
Note: See TracTickets for help on using tickets.