Doesn’t work with Bedrock
-
This plugin doesn’t work with Bedrock installs because the admin is placed inside the “wp” folder. The function get_site_url() returns the domain with the folder, like this:
https://www.example.com/wp
This makes the logic fail towards the end of the plugin file.
I think the safe fix is to use
get_home_url()
instead ofget_site_url()
. Or perhaps you look for the defined constantWP_HOME
which is what Bedrock uses to define the website home. If that’s defined, then use that in the logic to check if we have the has URL.What do you think? Can you change this?
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Doesn’t work with Bedrock’ is closed to new replies.