bug: wrong variable as error data

isekai
daggerhart 9 years ago
parent e6da3154a4
commit 4db956c119

@ -127,7 +127,7 @@ class OpenID_Connect_Generic_Client {
*/
function get_token_response( $token_result ){
if ( ! isset( $token_result['body'] ) ){
return new WP_Error( 'missing-token-body', __( 'Missing token body.' ), $token_response );
return new WP_Error( 'missing-token-body', __( 'Missing token body.' ), $token_result );
}
// extract token response from token

Loading…
Cancel
Save