Skip to content

Commit 9a58105

Browse files
committed
Simplify return from handle_callback_redirect
1 parent 9282106 commit 9a58105

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

lib/class-wp-json-authentication-oauth1-authorize.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,7 @@ public function render_page() {
8787
return $verifier;
8888
}
8989

90-
$error = $this->handle_callback_redirect( $verifier );
91-
if ( is_wp_error( $error ) ) {
92-
return $error;
93-
}
94-
return null;
90+
return $this->handle_callback_redirect( $verifier );
9591

9692
case 'cancel':
9793
exit;

0 commit comments

Comments
 (0)