/var/www/hkosl.com/aga/wp-content/plugins/wordpress-seo/admin/roles/class-role-manager-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
<?php
/**
 * WPSEO plugin file.
 *
 * @package WPSEO\Admin\Roles
 */

/**
 * Role Manager Factory.
 */
class WPSEO_Role_Manager_Factory {

    
/**
     * Retrieves the Role manager to use.
     *
     * @return WPSEO_Role_Manager
     */
    
public static function get() {
        static 
$manager null;

        if ( 
$manager === null ) {
            if ( 
function_exists'wpcom_vip_add_role' ) ) {
                
$manager = new WPSEO_Role_Manager_VIP();
            }

            if ( ! 
function_exists'wpcom_vip_add_role' ) ) {
                
$manager = new WPSEO_Role_Manager_WP();
            }
        }

        return 
$manager;
    }
}