sexygirlgeek's login fix - how does it work? (2 posts)

  1. paperlion
    Posted 11 years ago #

    Wow. Substituting this login page for the default 1.2.2 wp-login really did the trick on this new host install that I've been struggling with for the past few days.

    Anybody able to explain what it does?

  2. Ryan Boren
    WordPress Dev
    Posted 11 years ago #

    I think it just sets the cookie against siteurl rather than home. You can achieve the same result by replacing this:

    define('COOKIEPATH', preg_replace('|http://[^/]+|i', '', get_settings('home') . '/' ) );

    with this:

    define('COOKIEPATH', preg_replace('|http://[^/]+|i', '', get_settings('siteurl') . '/' ) );

    in wp-includes/vars.php.

    This fixes login problems for those running a WordPress Address and Blog Address that are side-by-side (Ex: /wordpress/ and /weblog/) which is an unsupported configuration in WP releases prior to 1.5.

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.