Menu

#32 openid sidebar login uses relative link to wp-login.php

open
nobody
Interface (10)
5
2007-02-19
2007-02-19
Julius P.
No

These lines in user-interface.php cause the OpenID login form to go to a file that may not exist. (They only work if you're in the root directory of your blog.)

$chunk ='<li><form method="post" action="wp-login.php" style="display:inline;">
<input ' . $style . 'class="openid_url_sidebar" name="openid_url" size="17" />
<input type="hidden" name="redirect_to" value="'. $_SERVER["REQUEST_URI"] .'" /></form></li>';

The simple fix--use get_option('home'):

$chunk ='<li><form method="post" action="' .get_option('home').
'/wp-login.php" style="display:inline;">

...

Discussion


Log in to post a comment.

Auth0 Logo