WordPress.org

Support

Support » How-To and Troubleshooting » sexygirlgeek’s login fix – how does it work?

sexygirlgeek’s login fix – how does it work?

  • 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?

Viewing 1 replies (of 1 total)
  • 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.

Viewing 1 replies (of 1 total)
  • The topic ‘sexygirlgeek’s login fix – how does it work?’ is closed to new replies.