File tree 1 file changed +6
-6
lines changed
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,10 @@ class WPSite {
8
8
* @var string
9
9
*/
10
10
public $ uploads_url ;
11
+ /**
12
+ * @var string
13
+ */
14
+ public $ home ;
11
15
/**
12
16
* @var string
13
17
*/
@@ -146,7 +150,8 @@ public function __construct() {
146
150
$ this ->wp_active_theme =
147
151
str_replace ( home_url (), '' , get_template_directory_uri () );
148
152
149
- $ this ->detect_base_url ();
153
+ $ this ->site_url = get_option ( 'siteurl ' );
154
+ $ this ->home = get_option ( 'home ' );
150
155
151
156
$ this ->subdirectory = $ this ->isSiteInstalledInSubDirectory ();
152
157
@@ -215,11 +220,6 @@ public function permalinksAreDefined() : bool {
215
220
return strlen ( get_option ( 'permalink_structure ' ) ) > 0 ;
216
221
}
217
222
218
- public function detect_base_url () : void {
219
- $ this ->site_url = get_option ( 'siteurl ' );
220
- $ this ->home = get_option ( 'home ' );
221
- }
222
-
223
223
/*
224
224
Function below assumes people may have changed the default
225
225
paths for WP directories
You can’t perform that action at this time.
0 commit comments