Skip to content

Commit 0093e7a

Browse files
authored
Actors: Make sure user id is int before strict-checking it (#1475)
1 parent 0a63d85 commit 0093e7a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

includes/collection/class-actors.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -306,6 +306,8 @@ public static function get_collection() {
306306
* @return string The user type.
307307
*/
308308
public static function get_type_by_id( $user_id ) {
309+
$user_id = (int) $user_id;
310+
309311
if ( self::APPLICATION_USER_ID === $user_id ) {
310312
return 'application';
311313
}

0 commit comments

Comments
 (0)