[wp-trac] [WordPress Trac] #18808: wp_lostpassword_url should be applied instead of using site_url

WordPress Trac wp-trac at lists.automattic.com
Wed Sep 28 22:52:28 UTC 2011


#18808: wp_lostpassword_url should be applied instead of using site_url
--------------------------+-----------------------------
 Reporter:  markoheijnen  |      Owner:
     Type:  enhancement   |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Users         |    Version:  2.7.1
 Severity:  normal        |   Keywords:
--------------------------+-----------------------------
 At this moment there are several places where the following code is been
 used:
 {{{
 site_url('wp-login.php?action=lostpassword', 'login')
 }}}

 It would be better to change that to wp_lostpassword_url. I created a
 patch what does that.
 Only in wp-login I left two lines open: form and error handling.

 I also changed wp_lostpassword_url so it can used within networks. The
 if/else statement can be removed when always using network_site_url. Also
 added some spacing.

 Related ticket is: #9932

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/18808>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list