Skip to content

Commit

Permalink
apply change
Browse files Browse the repository at this point in the history
  • Loading branch information
kadencewp committed Dec 11, 2024
1 parent d134ede commit 82d3e19
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/Uplink/Site/Data.php
Original file line number Diff line number Diff line change
Expand Up @@ -154,11 +154,8 @@ public function get_domain( bool $original = false ): string {
*/
protected function get_domain_multisite_option(): string {
/** @var string */
$site_url = get_site_option( 'siteurl', '' );
// Fallback to get_site_url function if the network site url is empty which is possible.
if ( empty( $site_url ) ) {
$site_url = get_site_url();
}
$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 );
if ( ! $site_url || ! isset( $site_url['host'] ) ) {
Expand Down

0 comments on commit 82d3e19

Please sign in to comment.