diff --git a/src/wp-includes/load.php b/src/wp-includes/load.php
index 4c212086df..39ca2ff308 100644
a
|
b
|
function wp_populate_basic_auth_from_authorization_header() { |
122 | 122 | $token = substr( $header, 6 ); |
123 | 123 | $userpass = base64_decode( $token ); |
124 | 124 | |
| 125 | // If there is no password provided, exit. |
| 126 | if ( ! str_contains( $userpass, ':' ) ) { |
| 127 | return; |
| 128 | } |
| 129 | |
| 130 | // Split token into $user and $pass variables |
125 | 131 | list( $user, $pass ) = explode( ':', $userpass ); |
126 | 132 | |
127 | 133 | // Now shove them in the proper keys where we're expecting later on. |