Suggested modification to fix subdirectory issue
-
Hello, I have a wordpress site installed in a subdirectory with the index.php in the root. Official wordpress information on this here
When the maintenance plugin was installed, and a user logged in via the frontpage, the plugin re-directed the user to the subdirectory not the the root of the doman.
Looking at the plugin files, this is because line 34 of the /lib/index.php file was using a depreciated function – get_settings(‘siteurl’);
The issue can be fixed by replacing this function with the the current wordpress function get_bloginfo(‘url’);
eg: on line 33-34
` if ( !isset( $_REQUEST[‘redirect_to’] ) ) {
$redirect_to = get_bloginfo(‘url’);`I suggest incorporating this into your next update?
Thanks for a great plugin!
- The topic ‘Suggested modification to fix subdirectory issue’ is closed to new replies.