WordPress.org

Ready to get started?Download WordPress

Forums

Maintenance
[resolved] Suggested modification to fix subdirectory issue (3 posts)

  1. desmillicious
    Member
    Posted 1 year ago #

    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!

    http://wordpress.org/extend/plugins/maintenance/

  2. rubhadubh
    Member
    Posted 1 year ago #

    I just logged in to make the same suggestion. I changed the line to use get_home_url() instead, but the effect is the same, and it cures the same issue.

    You might also want to change the wording of the error message on line 53, as the grammar is wrong. It should read either 'You entered your login and password incorrectly!' or 'The login and password you entered are incorrect!'

    Hope that helps - great plugin though - thanks.

  3. Fruitful Code
    Member
    Plugin Author

    Posted 12 months ago #

    Fixed in new version 1.2.2

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.