Default should be home_url, not site_url
-
The default redirect URL is set from site_url() but should be home_url() instead, as the two are different for some sites. site_url() is used to find paths to WordPress file assets (js, css, php), not the site home page, which can be at a different URL. For the default WP install scheme, these are the same, but for other types of installation (e.g. Bedrock-style, composer-based, etc.) they are different.
(Yes, I know I can override it with the filter, just noting that the default is incorrect for non-default site layouts. Thanks.)
The page I need help with: [log in to see the link]
- The topic ‘Default should be home_url, not site_url’ is closed to new replies.