WordPress.org

Support

Support » Plugins and Hacks » [Resolved] Suggested modification to fix subdirectory issue

[Resolved] Suggested modification to fix subdirectory issue

  • desmillicious
    Member

    @desmillicious

    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/

Viewing 2 replies - 1 through 2 (of 2 total)
  • rubhadubh
    Member

    @rubhadubh

    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.

    Plugin Author Fruitful Code
    Participant

    @fruitfulcode

    Fixed in new version 1.2.2

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] Suggested modification to fix subdirectory issue’ is closed to new replies.