Skip to content
This repository has been archived by the owner on Nov 14, 2022. It is now read-only.

Commit

Permalink
Don't use is_a as it can throw a deprecated warning
Browse files Browse the repository at this point in the history
Fixes #38
props @chriscct7
  • Loading branch information
georgestephanis committed Oct 8, 2016
1 parent 74cf1e4 commit 37cd731
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion class.application-passwords.php
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ public static function rest_api_auth_handler( $input_user ){

$user = self::authenticate( $input_user, $_SERVER['PHP_AUTH_USER'], $_SERVER['PHP_AUTH_PW'] );

if ( is_a( $user, 'WP_User' ) ) {
if ( $user instanceof WP_User ) {
return $user->ID;
}

Expand Down

0 comments on commit 37cd731

Please sign in to comment.