diff --git a/src/Uplink/Site/Data.php b/src/Uplink/Site/Data.php index 0a02f68e..38a5a046 100644 --- a/src/Uplink/Site/Data.php +++ b/src/Uplink/Site/Data.php @@ -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 */ $site_url = wp_parse_url( $site_url );