File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,10 @@ class WPSite {
88 * @var string
99 */
1010 public $ uploads_url ;
11+ /**
12+ * @var string
13+ */
14+ public $ home ;
1115 /**
1216 * @var string
1317 */
@@ -146,7 +150,8 @@ public function __construct() {
146150 $ this ->wp_active_theme =
147151 str_replace ( home_url (), '' , get_template_directory_uri () );
148152
149- $ this ->detect_base_url ();
153+ $ this ->site_url = get_option ( 'siteurl ' );
154+ $ this ->home = get_option ( 'home ' );
150155
151156 $ this ->subdirectory = $ this ->isSiteInstalledInSubDirectory ();
152157
@@ -215,11 +220,6 @@ public function permalinksAreDefined() : bool {
215220 return strlen ( get_option ( 'permalink_structure ' ) ) > 0 ;
216221 }
217222
218- public function detect_base_url () : void {
219- $ this ->site_url = get_option ( 'siteurl ' );
220- $ this ->home = get_option ( 'home ' );
221- }
222-
223223 /*
224224 Function below assumes people may have changed the default
225225 paths for WP directories
You can’t perform that action at this time.
0 commit comments