Make WordPress Core

Opened 6 years ago

Last modified 16 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
Priority: normal Milestone: Awaiting Review
Component: Networks and Sites Version:
Severity: normal Keywords: has-patch needs-unit-tests needs-testing needs-test-info reporter-feedback
Cc: Focuses: multisite

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 (19)

#1 @sabernhardt
6 years ago

  • Component General → Networks and Sites
  • Focuses multisite added

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


6 years ago
#2

  • 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.


6 years ago

#4 @SergeyBiryukov
6 years ago

  • Milestone Awaiting Review → 5.8
  • Owner set to SergeyBiryukov
  • Status new → reviewing

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


5 years ago

#6 @chaion07
5 years ago

Thanks to @tremidkhar for reporting this. We reviewed this ticket during a recent [bug-scrub session]​https://wordpress.slack.com/archives/C02RQBWTW/p1623098372373600. With Beta 1 coming in a day, checking with @SergeyBiryukov to kindly draw some attention to this. Thank you!

#7 @hellofromTonya
5 years ago

  • Milestone 5.8 → 5.9

Today is 5.8 Beta 1. With no activity, punting to 5.9.

#8 @hellofromTonya
5 years ago

  • Keywords needs-unit-tests needs-testing needs-testing-info reporter-feedback added
  • Milestone 5.9 → 6.0

Hello @tremidkhar,

Welcome to WordPress Core Trac!

First of all, I'm sorry your ticket and patch has not yet been reviewed, but rather punted from release to release.

Can you please provide step-by-step instructions on how to reproduce the reported problem? First step will be to reproduce it and then dive in to investigate why it's happening. Marking the ticket for needs-testing-info.

Also, if a new function is what's needed, it will require unit tests. Marking the ticket to note that need.

With 5.9 Beta 1 in 2 days and no activity (yet) on this ticket, moving it to 6.0. However, if the problem is reproducible and the patch is ready, then it can be moved back into the 5.9 milestone for commit consideration. Else, let's see if it can be resolved in 6.0.

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


5 years ago

#10 @hellofromTonya
4 years ago

  • Milestone 6.0 → Awaiting Review

As 6.0 RC1 is tomorrow and there's been no activity since it was punted from 5.9, moving this back to Awaiting Review.

#11 @tremidkhar
4 years ago

Hello @hellofromTonya,

I apologize for the delay, Here is a video on how to reproduce the issue that I have mentioned.

​https://youtu.be/tvKBLnx6VfI

​TremiDkhar commented on ​PR #1014:


4 years ago
#13

Closing this as the dev branch is out of date.

Opening a new PR ​here.

#14 @tremidkhar
2 years ago

Hello @SergeyBiryukov,

I have updated the ​PR for this. Can you have a look at it, please? Thank you.

#15 @wordpressdotorg
17 months ago

  • Keywords needs-test-info added; needs-testing-info removed

This ticket was mentioned in ​Slack in #core-multisite by realloc. ​View the logs.


16 months ago

This ticket was mentioned in ​PR #8918 on ​WordPress/wordpress-develop by ​@Soean.


16 months ago
#17

Change the parameter $old_value to $deprecated, because it is not used in the function

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

#18 @Soean
16 months ago

@heikomamerow and I created a new PR. The first parameter of update_option_new_admin_email() is not used in the function, so we should deprecate it.

This ticket was mentioned in ​Slack in #core-multisite by soean. ​View the logs.


16 months ago

Note: See TracTickets for help on using tickets.