[wp-trac] [WordPress Trac] #63267: Coding Standards: Check for an empty $old_email first in wp_site_admin_email_change_notification()
WordPress Trac
noreply at wordpress.org
Sun Apr 13 16:47:07 UTC 2025
#63267: Coding Standards: Check for an empty $old_email first in
wp_site_admin_email_change_notification()
--------------------------+-------------------------------
Reporter: dilipbheda | Owner: SergeyBiryukov
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 6.9
Component: General | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch | Focuses: coding-standards
--------------------------+-------------------------------
Changes (by SergeyBiryukov):
* owner: (none) => SergeyBiryukov
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"60153" 60153]:
{{{
#!CommitTicketReference repository="" revision="60153"
Coding Standards: Check for an empty address first on admin email change
notification.
This follows a common best practice of checking for an empty value before
doing a specific comparison.
Follow-up to [60122], [60129].
Props dilipbheda, Presskopp.
Fixes #63267.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/63267#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list