Join GitHub today
Use `network_home_url()` instead of `PATH_CURRENT_SITE` #734
There are several redirects and an anchor that use
This makes the shift to
There are several redirects and an anchor that use `PATH_CURRENT_SITE` to generate the URL. It's possible to configure multisite without this constant, at which point PHP errors are generated in these areas. This makes the shift to `network_home_url()`, which uses the domain and path of the current network and provides a filter for anyone wishing to customize.
@@ Coverage Diff @@ ## dev #734 +/- ## ========================================== + Coverage 13.2% 13.2% +<.01% Complexity 2479 2479 ========================================== Files 69 69 Lines 12561 12576 +15 ========================================== + Hits 1659 1661 +2 - Misses 10902 10915 +13