mikejolley / sidebar-login

Easily add an ajax-enhanced login widget to your WordPress site sidebar.

Home Page:http://wordpress.org/extend/plugins/sidebar-login/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Lost Password Link

signo opened this issue · comments

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.