Skip to content
This repository has been archived by the owner on Jan 11, 2021. It is now read-only.

Commit

Permalink
Authentication-fix
Browse files Browse the repository at this point in the history
Fixing up Problem throuth my changes in WP-API#25, so Plugin thought each request is with autentication.
  • Loading branch information
lippoliv committed Oct 24, 2015
1 parent 3e3412d commit 88d4905
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion basic-auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function json_basic_auth_handler( $user ) {
}

// Check that we're trying to authenticate
if ( !isset( $_SERVER['PHP_AUTH_USER'] ) ) {
if ( !isset( $_SERVER['PHP_AUTH_USER'] ) || $_SERVER['PHP_AUTH_USER'] === '' ) {
return $user;
}

Expand Down

0 comments on commit 88d4905

Please sign in to comment.