Same here. After login wp redirects me to url with “1” filled in…
WP: 4.0
Login W/ Ajax: 3.1.4
Same problem here – solution below taken from another thread – it worked for me! Revert back to plugin version 3.1.3.
revert back to the previous version http://downloads.wordpress.org/plugin/login-with-ajax.3.1.3.zip
Hi Lee550,
Previous version was working perfectly fine but my host want all plugins to be updated.
Finally,I am reverting back until I find a solution
Thanks
Pranav
Here is another solution.
Open the file login-with-ajax.php and around line 162, change the “if statements” order.
Current order:
if( !empty($_REQUEST['redirect_to']) ) $redirect= wp_sanitize_redirect($_REQUEST['redirect_to']);
if( $redirect != '' ){ $return['redirect'] = $redirect; }
Change it to:
if( $redirect != '' ){ $return['redirect'] = $redirect; }
if( !empty($_REQUEST['redirect_to']) ) $redirect= wp_sanitize_redirect($_REQUEST['redirect_to']);
`
Hi Harrison,
This solution worked really quick.
Thanks so much
Pranav
Harrison,
It worked perfectly; thank you for the quick fix.
Dag
i had to edit and disable the redirect to of the file login-with-ajax.php
//Do a redirect if necessary
//$redirect = self::getLoginRedirect(self::$current_user);
//if( !empty($_REQUEST[‘redirect_to’]) ) $redirect= wp_sanitize_redirect($_REQUEST[‘redirect_to’]);
//if( $redirect != ” ){
//$return[‘redirect’] = $redirect;
//}
nice plugin but there is some error with this plugin , it s a pitty it s really nice, don t know if this si a security related issue… the developer should update it