Skip to content

Commit e02b9b3

Browse files
committed
rm crufty fn
1 parent b38f143 commit e02b9b3

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/WPSite.php

+6-6
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)