Support » Plugin: Smart WP Login » Username validation bypass not working

  • Hi,

    Thanks for making this plugin, it helped me a lot in a site I’m building. However, there’s an error for my version of WP: the empty username error bypass is now working.

    I found that

    if(isset($wp_error->errors['empty_username'])){
            unset($wp_error->errors['empty_username']);
        }

    Is not working; not sure why because I’m not that familiar with plugging into this kind of WP functionality. I used an intermediate temporary array and it succesfully unset the variable.

    if(isset($wp_error->errors['empty_username'])){
            $array = $wp_error->errors;
            unset($array['empty_username']);
            $wp_error->errors = $array;
        }

    Hope this helps.

    https://wordpress.org/plugins/smart-wp-login/

  • The topic ‘Username validation bypass not working’ is closed to new replies.