[wp-trac] [WordPress Trac] #59156: sanitize_email method should lowercase the given email

WordPress Trac noreply at wordpress.org
Tue Aug 22 06:57:57 UTC 2023


#59156: sanitize_email method should lowercase the given email
-------------------------------+------------------------------
 Reporter:  achchu93           |       Owner:  (none)
     Type:  enhancement        |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Formatting         |     Version:  6.3
 Severity:  minor              |  Resolution:
 Keywords:  reporter-feedback  |     Focuses:
-------------------------------+------------------------------

Comment (by achchu93):

 Okay, lets say I am sending 'Ahamed at arshad.com' as my email. This method
 sanitize and returns it with the capital letter it already had. If I want
 to save the email as a meta, I have to lowercase it again. Lets say if I
 have saved the email in Capital letters I have to use this method and
 again I have to run lowercase function. As this is a formatting helper
 function it would be great if we can get the output in lowercase. So we
 don't have to use strtolower function everywhere in the plugin. One single
 formatting function will do whatever it requires for the email.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/59156#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list