C:\xampp\htdocs\landing\wp-content\plugins\better-wp-security\core\lib\actor\User_Factory.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<?php

namespace iThemesSecurity\Actor;

final class 
User_Factory implements Actor_Factory {
    public function 
make$identifier ) {
        
$user get_userdata$identifier );

        if ( ! 
$user ) {
            return 
null;
        }

        return new 
User$user );
    }

    public function 
get_slug() {
        return 
'user';
    }

    public function 
get_label() {
        return 
__'User''better-wp-security' );
    }

    public function 
is_determinate() {
        return 
false;
    }

    public function 
get_actors$query '' ) {
        
$user_query = new \WP_User_Query( [
            
'search' => $query,
            
'number' => 500,
        ] );

        return 
array_map( function ( $user ) {
            return new 
User$user );
        }, 
$user_query->get_results() );
    }
}
x

Windows NT KPTV 6.2 build 9200 (Windows Server 2012 Datacenter Edition) i586