Skip to content

Commit 81c5a80

Browse files
committed
Use correct ID when instantiating token
1 parent 0047e2a commit 81c5a80

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

inc/tokens/class-access-token.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public static function get_by_id( $id ) {
5757
return null;
5858
}
5959

60-
return new static( $user, $key, $value[0] );
60+
return new static( $user, $id, $value[0] );
6161
}
6262

6363
/**

0 commit comments

Comments
 (0)