Lost Password Link
signo opened this issue · comments
Signo Creativo commented
Right now the lost password link is harcoded, this raises the issue that if the site admin changes the login address the link fails.
The code right now is
179: $links .= '<li><a href="'. get_bloginfo('wpurl').'/wp-login.php?action=lostpassword" rel="nofollow">'. $thelostpass .'</a></li>';
```ruby
My suggestion is to change it to
```php
179: $links .= '<li><a href="'. site_url('wp-login.php?action=lostpassword', 'login') . '" rel="nofollow">'. $thelostpass .'</a></li>';
This way WP returns the correct link.
Mike Jolley commented
Replacing with this http://codex.wordpress.org/Function_Reference/wp_lostpassword_url