WordPress.org

Make WordPress Core

Opened 3 months ago

Last modified 2 months ago

#52464 reviewing defect (bug)

The value of argument passed to the update_option_new_admin_email() is not a valid email.

Reported by: tremidkhar Owned by: SergeyBiryukov
Milestone: 5.8 Priority: normal
Severity: normal Version:
Component: Networks and Sites Keywords: has-patch
Focuses: multisite Cc:

Description

While creating a patch for ticket #43706, I found out that the function update_option_new_admin_email() is responsible for the template. It does accept two parameters, however, the first parameter $old_value does not seem to get the correct value.

When checking the value, it holds the value new_admin_email instead of the old email address.

Thanks!

Change History (4)

#1 @sabernhardt
3 months ago

  • Component changed from General to Networks and Sites
  • Focuses multisite added

This ticket was mentioned in PR #1014 on WordPress/wordpress-develop by tremidkhar.


3 months ago

  • Keywords has-patch added

When changing the admin email address, the argument passed to update_option_new_admin_email() function is a string instead of an email address.

Trac ticket: https://core.trac.wordpress.org/ticket/52464

This ticket was mentioned in Slack in #core by sergey. View the logs.


2 months ago

#4 @SergeyBiryukov
2 months ago

  • Milestone changed from Awaiting Review to 5.8
  • Owner set to SergeyBiryukov
  • Status changed from new to reviewing
Note: See TracTickets for help on using tickets.