/var/www/(Del)hsihk.com/wp-content/plugins/backupbuddy/_compat.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
<?php


// 2.9

if ( ! function_exists'is_multisite' ) ) {
    function 
is_multisite() {
        return 
false;
    }
}

if ( ! 
function_exists'is_network_admin' ) ) {
    function 
is_network_admin() {
        return 
false;
    }
}

// 2.8

if ( ! function_exists'home_url' ) ) {
    function 
home_url() {
        return 
get_option'home' );
    }
}


// 2.7

if ( ! function_exists'add_site_option' ) ) {
    function 
add_site_option$key$value ) {
        return 
add_option($key$value);
    }
}

if ( ! 
function_exists'get_site_option' ) ) {
    function 
get_site_option$key$default false$use_cache true ) {
        return 
get_option($key$default);
    }
}

if ( ! 
function_exists'esc_url_raw' ) ) {
    function 
esc_url_raw$url$protocols null ) {
        return 
clean_url$url$protocols'db' );
    }
}

if ( ! 
function_exists'esc_url' ) ) {
    function 
esc_url$url$protocols null ) {
        return 
clean_url$url$protocols'display' );
    }
}

if ( ! 
function_exists'wp_script_is' ) ) {
    function 
wp_script_is$handle$list 'queue' ) {
        global 
$wp_scripts;
        if ( !
is_a($wp_scripts'WP_Scripts') )
            
$wp_scripts = new WP_Scripts();
        
        
$query $wp_scripts->query$handle$list );
        
        if ( 
is_object$query ) )
            return 
true;
        
        return 
$query;
    }
}

if ( ! 
function_exists'wp_style_is' ) ) {
    function 
wp_style_is$handle$list 'queue' ) {
        global 
$wp_styles;
        if ( !
is_a$wp_styles'WP_Scripts' ) )
            
$wp_styles = new WP_Styles();
        
        
$query $wp_styles->query$handle$list );
        
        if ( 
is_object$query ) )
            return 
true;
        
        return 
$query;
    }
}

if ( ! 
function_exists'fetch_feed' ) ) {
    function 
fetch_feed$url ) {
        return new 
WP_Error'unsupported''This version of WordPress does not support this function.' );
    }
}


// 2.6

if ( ! function_exists'wp_remote_post' ) ) {
    function 
wp_remote_post$url$args = array() ) {
        return new 
WP_Error'unsupported''This version of WordPress does not support this function.' );
    }
}

if ( ! 
function_exists'wp_remote_get' ) ) {
    function 
wp_remote_get$url$args = array() ) {
        return new 
WP_Error'unsupported''This version of WordPress does not support this function.' );
    }
}

if ( ! 
function_exists'wp_remote_retrieve_response_code' ) ) {
    function 
wp_remote_retrieve_response_code(&$response) {
        return 
'';
    }
}

if ( ! 
function_exists'wp_remote_retrieve_body' ) ) {
    function 
wp_remote_retrieve_body(&$response) {
        return 
'';
    }
}