Make WordPress Core


Ignore:
Timestamp:
09/12/2013 06:56:20 AM (11 years ago)
Author:
dd32
Message:

Fix wp_guess_url() to work in every scenario I could find, allows us to use it to determine the correct path to the WordPress Site URL before installation for install.php and setup-config.php redirects. Fixes #24480 Fixes #16884

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/load.php

    r25289 r25396  
    446446            wp_die( __( 'The site you have requested is not installed properly. Please contact the system administrator.' ) );
    447447    } elseif ( ! is_blog_installed() && false === strpos( $_SERVER['PHP_SELF'], 'install.php' ) && !defined( 'WP_INSTALLING' ) ) {
    448 
    449         $link = wp_guess_url() . '/wp-admin/install.php';
    450 
    451448        require( ABSPATH . WPINC . '/kses.php' );
    452449        require( ABSPATH . WPINC . '/pluggable.php' );
    453450        require( ABSPATH . WPINC . '/formatting.php' );
     451
     452        $link = wp_guess_url() . '/wp-admin/install.php';
     453
    454454        wp_redirect( $link );
    455455        die();
Note: See TracChangeset for help on using the changeset viewer.