wp_authenticate_username_password not authenticating properly when pass username and password

Looking at the source code of wp_authenticate_username_password(), if you’re passing a valid WP_User object in the $user_obj parameter, it will simply be returned. Only if $user_obj is not a valid WP_User will the $username and $password parameters be checked. If you’re trying to ensure a user’s username and password are valid, I’d recommend using wp_authenticate() … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)