WordPress.org

Make WordPress Core

Opened 7 months ago

Closed 6 months ago

Last modified 6 months 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:

Description

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 7 months ago.

Download all attachments as: .zip

Change History (5)

@spacedmonkey
7 months ago

#1 @SergeyBiryukov
7 months ago

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

#2 @pento
6 months ago

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

#3 @pento
6 months 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
6 months ago

In 44470:

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

See #45748.

Note: See TracTickets for help on using tickets.