Skip to content

Commit 8c8d4a5

Browse files
committed
Use get_by_id instead for picking up clients, in order to have same draft mode behavior
1 parent e159009 commit 8c8d4a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

inc/types/class-base.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public function handle_authorisation() {
3939
$scope = isset( $_GET['scope'] ) ? wp_unslash( $_GET['scope'] ) : null;
4040
$state = isset( $_GET['state'] ) ? wp_unslash( $_GET['state'] ) : null;
4141

42-
$client = Client::get_by_client_id( $client_id );
42+
$client = Client::get_by_id( $client_id );
4343
if ( empty( $client ) ) {
4444
return new WP_Error(
4545
'oauth2.types.authorization_code.handle_authorisation.invalid_client_id',

0 commit comments

Comments
 (0)