3.9.2 breaks my login
-
Been using this code in my theme to redirect wp-login.php to the homepage
unless accessed via “my-login” URL as defined in my .htaccess.After the auto-update to WP 3.9.2, this redirects ALL login
attempts to the home page. I see some mods to wp-login.php
in the 3.9.2 update, but no idea how to fix this code:function login_redirect() {
if ( strpos( $_SERVER[“REQUEST_URI”], ‘my-login’ ) === false ) {
wp_redirect( home_url() );
exit();
}
}
add_action( ‘login_init’, ‘login_redirect’ );
Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
- The topic ‘3.9.2 breaks my login’ is closed to new replies.