WordPress.org

Make WordPress Core

Opened 4 years ago

Closed 4 years ago

#11745 closed defect (bug) (fixed)

deprecate validate_email()

Reported by: Denis-de-Bernardy Owned by: wpmuguru
Milestone: 3.0 Priority: normal
Severity: normal Version: 3.0
Component: Multisite Keywords: has-patch commit
Focuses: Cc:

Description

wp-includes/ms-functions.php contains new functions such as is_email_address_unsafe() and validate_email().

we should at least deprecate validate_email() in favor of is_email().

Attachments (1)

11745.diff (385 bytes) - added by ShaneF 4 years ago.
added '_deprecated_function' to 'validate_email'

Download all attachments as: .zip

Change History (6)

comment:1 wpmuguru4 years ago

  • Owner set to wpmuguru
  • Status changed from new to accepted

The is_email_address_unsafe is for preventing signups using email addresses that are banned by a super admin.

comment:2 wpmuguru4 years ago

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

(In [12863]) deprecate validate_email(), fixes #11745

ShaneF4 years ago

added '_deprecated_function' to 'validate_email'

comment:3 ShaneF4 years ago

  • Keywords has-patch commit added
  • Resolution fixed deleted
  • Status changed from closed to reopened

Just need to add the '_deprecated_function' function inside validate_email function so so people can be advised to update.

comment:4 nacin4 years ago

Committer: Should be 'is_email()'.

comment:5 ryan4 years ago

  • Resolution set to fixed
  • Status changed from reopened to closed
Note: See TracTickets for help on using tickets.