Make WordPress Core

Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#45748 closed enhancement (fixed)

Use email_exists in send_confirmation_on_profile_email

Reported by: spacedmonkey Owned by: pento
Milestone: 5.1 Priority: normal
Severity: normal Version: 3.0
Component: Users Keywords: good-first-bug has-patch
Focuses: Cc:


Use email_exists in send_confirmation_on_profile_email function, as email_exists is a cached call.

Attachments (1)

45748.diff (499 bytes) - added by spacedmonkey 3 years ago.

Download all attachments as: .zip

Change History (5)

3 years ago

#1 @SergeyBiryukov
3 years ago

  • Milestone changed from Awaiting Review to 5.1
  • Owner set to SergeyBiryukov
  • Status changed from new to reviewing

#2 @pento
3 years ago

  • Owner changed from SergeyBiryukov to pento
  • Status changed from reviewing to accepted

#3 @pento
3 years ago

  • Resolution set to fixed
  • Status changed from accepted to closed

In 44465:

Users: Use email_exists() in send_confirmation_on_profile_email(), instead of a manual query.

This gives us caching, and removes the use of the $wpdb global.

Props spacedmonkey, pento.
Fixes #45748.

#4 @pento
3 years ago

In 44470:

Coding Standards: Fix an error introduced in [44465].

See #45748.

Note: See TracTickets for help on using tickets.