@@ -31,95 +31,9 @@ function mailchimp_sf_display_widget( $args = array() ) {
31
31
}
32
32
}
33
33
34
-
35
34
/* Shortcodes */
36
35
add_shortcode ( 'mailchimpsf_widget ' , 'mailchimp_sf_shortcode ' );
37
36
38
-
39
- /* Functions for < WP 3.0 Compat */
40
-
41
- if ( ! function_exists ( 'home_url ' ) ) {
42
- /**
43
- * Retrieve the home url for the current site.
44
- *
45
- * Returns the 'home' option with the appropriate protocol, 'https' if
46
- * is_ssl() and 'http' otherwise. If $scheme is 'http' or 'https', is_ssl() is
47
- * overridden.
48
- *
49
- * @package WordPress
50
- * @since 3.0.0
51
- *
52
- * @uses get_home_url()
53
- *
54
- * @param string $path (optional) Path relative to the home url.
55
- * @param string $scheme (optional) Scheme to give the home url context. Currently 'http','https'
56
- * @return string Home url link with optional path appended.
57
- */
58
- function home_url ( $ path = '' , $ scheme = null ) {
59
- return get_home_url ( null , $ path , $ scheme );
60
- }
61
- }
62
-
63
- if ( ! function_exists ( 'get_home_url ' ) ) {
64
- /**
65
- * Retrieve the home url for a given site.
66
- *
67
- * Returns the 'home' option with the appropriate protocol, 'https' if
68
- * is_ssl() and 'http' otherwise. If $scheme is 'http' or 'https', is_ssl() is
69
- * overridden.
70
- *
71
- * @package WordPress
72
- * @since 3.0.0
73
- *
74
- * @param int $blog_id (optional) Blog ID. Defaults to current blog.
75
- * @param string $path (optional) Path relative to the home url.
76
- * @param string $scheme (optional) Scheme to give the home url context. Currently 'http','https'
77
- * @return string Home url link with optional path appended.
78
- */
79
- function get_home_url ( $ blog_id = null , $ path = '' , $ scheme = null ) {
80
- $ orig_scheme = $ scheme ;
81
-
82
- if ( ! in_array ( $ scheme , array ( 'http ' , 'https ' ), true ) ) {
83
- $ scheme = is_ssl () && ! is_admin () ? 'https ' : 'http ' ;
84
- }
85
-
86
- if ( empty ( $ blog_id ) || ! is_multisite () ) {
87
- $ home = get_option ( 'home ' );
88
- } else {
89
- $ home = get_blog_option ( $ blog_id , 'home ' );
90
- }
91
-
92
- $ url = str_replace ( 'http:// ' , "$ scheme:// " , $ home );
93
-
94
- if ( ! empty ( $ path ) && is_string ( $ path ) && strpos ( $ path , '.. ' ) === false ) {
95
- $ url .= '/ ' . ltrim ( $ path , '/ ' );
96
- }
97
-
98
- return apply_filters ( 'home_url ' , $ url , $ path , $ orig_scheme , $ blog_id );
99
- }
100
- }
101
-
102
- if ( ! function_exists ( 'is_multisite ' ) ) {
103
- /**
104
- * Whether Multisite support is enabled
105
- *
106
- * @since 3.0.0
107
- *
108
- * @return bool True if multisite is enabled, false otherwise.
109
- */
110
- function is_multisite () {
111
- if ( defined ( 'MULTISITE ' ) ) {
112
- return MULTISITE ;
113
- }
114
-
115
- if ( defined ( 'VHOST ' ) || defined ( 'SUNRISE ' ) ) {
116
- return true ;
117
- }
118
-
119
- return false ;
120
- }
121
- }
122
-
123
37
/**
124
38
* Deprecates functions for plugin version 1.6.0
125
39
*
0 commit comments