WordPress.org

Make WordPress Core

Changeset 19923


Ignore:
Timestamp:
02/14/2012 06:08:45 PM (9 years ago)
Author:
ryan
Message:

Properly redirect to install.php when visiting wp-login.php with a config file but no db. Props SergeyBiryukov. fixes #18397

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/functions.php

    r19918 r19923  
    30493049    } else {
    30503050        $schema = is_ssl() ? 'https://' : 'http://';
    3051         $url = preg_replace('|/wp-admin/.*|i', '', $schema . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']);
     3051        $url = preg_replace('#/(wp-admin/.*|wp-login.php)#i', '', $schema . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']);
    30523052    }
    30533053    return rtrim($url, '/');
Note: See TracChangeset for help on using the changeset viewer.