Skip to content

Commit 9156d87

Browse files
committed
Ensure user is an int
1 parent 8e9c057 commit 9156d87

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
@@ -75,7 +75,7 @@ public static function create( Client $client, WP_User $user ) {
7575
}
7676

7777
$data = array(
78-
'user' => $user->ID,
78+
'user' => (int) $user->ID,
7979
);
8080
$key = wp_generate_password( static::KEY_LENGTH, false );
8181
$meta_key = static::META_PREFIX . $key;

0 commit comments

Comments
 (0)