Skip to content

Commit

Permalink
Merge pull request #93 from stellarwp/bugfix/empty-domain
Browse files Browse the repository at this point in the history
Bugfix/empty domain
  • Loading branch information
kadencewp authored Dec 12, 2024
2 parents 301a5d4 + 82d3e19 commit f33e2d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Uplink/Site/Data.php
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ public function get_domain( bool $original = false ): string {
*/
protected function get_domain_multisite_option(): string {
/** @var string */
$site_url = get_site_option( 'siteurl', '' );
$site_url = get_site_option( 'siteurl', '' ) ?: get_site_url(); // Fallback to get_site_url function if the network site url is empty which is possible.

/** @var array<string> */
$site_url = wp_parse_url( $site_url );
Expand Down

0 comments on commit f33e2d3

Please sign in to comment.