Relocated WordPress core directory issues
-
Hi Peter,
Thanks so much for creating this plugin. It is simple and does one job well. I did notice an issue though when using it on a site where WordPress core is in its own directory.I am installing WordPress via Composer into a “wp” directory. I’ve defined WP_HOME to be my site URL and WP_SITEURL to have “/wp” appended to accommodate the relocated WordPress core location.
This plugin uses get_site_url(), which return the ‘siteurl’ value – in my case with the “/wp” appended causing a redirect loop on the frontend of the site.
Can you update the plugin to use get_home_url(), which returns the ‘home’ value instead?
This solved my issue. I was unable to find a GitHub repository for the plugin, otherwise, I would have made a pull request.
Cheers,
Andrew
- The topic ‘Relocated WordPress core directory issues’ is closed to new replies.