[wp-trac] [WordPress Trac] #31039: Move retrieve_password() from wp-login.php

WordPress Trac noreply at wordpress.org
Sun Apr 19 14:19:30 UTC 2015


#31039: Move retrieve_password() from wp-login.php
------------------------------------+------------------------------
 Reporter:  jfarthing84             |       Owner:
     Type:  defect (bug)            |      Status:  new
 Priority:  normal                  |   Milestone:  Awaiting Review
Component:  Login and Registration  |     Version:
 Severity:  normal                  |  Resolution:
 Keywords:  has-patch dev-feedback  |     Focuses:
------------------------------------+------------------------------

Comment (by dimadin):

 I propose that we don't add new functions like in previous patch and
 instead we just copy existing function, introduce new parameter to switch
 from reliance on `$_POST` inside of a function.

 There is quick and untested patch attached below to give you an
 impression.

 Also, @jfarthing84 hasn't mentioned why should we do this. Thing is that
 it's impossible to retrieve password the other way than creating your own
 function. For example, lets say that you have a custom login form outside
 `wp-login.php`, you can't access this function so you need to create new
 one. I already did this a couple of times so that why I'm proposing making
 this function available to all users.

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


More information about the wp-trac mailing list