WordPress.org

Make WordPress Core

Ticket #4687: 4687.diff

File 4687.diff, 710 bytes (added by Nazgul, 11 years ago)
  • wp-settings.php

     
    144144if ( !is_blog_installed() && (strpos($_SERVER['PHP_SELF'], 'install.php') === false && !defined('WP_INSTALLING')) ) {
    145145        if (strpos($_SERVER['PHP_SELF'], 'wp-admin') !== false)
    146146                $link = 'install.php';
    147         else
    148                 $link = 'wp-admin/install.php';
     147        else {
     148                if ( defined('WP_SITEURL') )
     149                        $link = WP_SITEURL . '/wp-admin/install.php';
     150                else
     151                        $link = 'wp-admin/install.php';
     152        }
    149153
    150154        wp_die( sprintf( 'It doesn&#8217;t look like you&#8217;ve installed WP yet. Try running <a href="%s">install.php</a>.', $link ) );
    151155}