Login Redirect Not Working after 4.4 Upgrade
-
I was using this code to redirect to a custom login page (had it in my functions.php file):
/* customizing the login link */
function gv_login_url( $login_url, $redirect, $force_reauth = false ) {
$login_url = site_url(‘login/’, ‘login’);
if ( !empty($redirect) )
$login_url = add_query_arg(‘redirect_to’, urlencode($redirect), $login_url);
if ( $force_reauth )
$login_url = add_query_arg(‘reauth’, ‘1’, $login_url);
return $login_url;
}add_filter(‘login_url’,’gv_login_url’,10,3);
Once I upgraded to 4.4, this no longer works and I had to remove it to get the login to work. How can I fix this??? I’m actually ironically supposed to put this site live TODAY – I can’t do that with this broken, my client wants a custom login page.
Thanks,
Sharon
- The topic ‘Login Redirect Not Working after 4.4 Upgrade’ is closed to new replies.