#18808 closed defect (bug) (fixed)
wp_lostpassword_url should be applied instead of using site_url
| Reported by: | markoheijnen | Owned by: | nacin |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.3 |
| Component: | Users | Version: | 2.7.1 |
| Severity: | normal | Keywords: | has-patch dev-feedback |
| Cc: | Focuses: |
Description
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
Attachments (2)
Change History (7)
#2
follow-up:
↓ 5
@
15 years ago
- Milestone Awaiting Review → 3.3
- Type enhancement → defect (bug)
I didn't know we had wp_lostpassword_url(). Not using our own API, that's lame.
We can always use network_site_url(), no need for an if statement. If not multisite, it simply calls site_url().
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
First version of the patch