Skip to content
This repository was archived by the owner on Apr 10, 2025. It is now read-only.

Output home_url() instead of site_url()#47

Open
elvismdev wants to merge 1 commit into
yasglobal:masterfrom
elvismdev:site_url-to-home_url
Open

Output home_url() instead of site_url()#47
elvismdev wants to merge 1 commit into
yasglobal:masterfrom
elvismdev:site_url-to-home_url

Conversation

@elvismdev
Copy link
Copy Markdown

site_url() isn't always guaranteed that will have the right root path of the site, on WordPress projects managed with composer (WP Starter) it can return http://mywebsite.com/wp/, best practice would be to use home_url().

2020-08-17_19-58

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant