Make WordPress Core

Changeset 2455


Ignore:
Timestamp:
03/17/2005 11:34:06 PM (19 years ago)
Author:
matt
Message:

Use installing variable (from Donncha)

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/install.php

    r2437 r2455  
    11<?php
    2 $_wp_installing = 1;
     2define('WP_INSTALLING', true);
    33if (!file_exists('../wp-config.php'))
    44    die("There doesn't seem to be a <code>wp-config.php</code> file. I need this before we can get started. Need more help? <a href='http://wordpress.org/docs/faq/#wp-config'>We got it</a>. You can <a href='setup-config.php'>create a <code>wp-config.php</code> file through a web interface</a>, but this doesn't work for all server setups. The safest way is to manually create the file.");
  • trunk/wp-admin/setup-config.php

    r2271 r2455  
    11<?php
    2 $_wp_installing = 1;
     2define('WP_INSTALLING', true);
    33
    44if (file_exists('../wp-config.php'))
  • trunk/wp-admin/upgrade.php

    r2391 r2455  
    11<?php
    2 $_wp_installing = 1;
     2define('WP_INSTALLING', true);
    33if (!file_exists('../wp-config.php')) die("There doesn't seem to be a wp-config.php file. Double check that you updated wp-config-sample.php with the proper database connection information and renamed it to wp-config.php.");
    44require('../wp-config.php');
  • trunk/wp-includes/functions.php

    r2437 r2455  
    304304function get_settings($setting) {
    305305  global $wpdb, $cache_settings, $cache_nonexistantoptions;
    306     if ( strstr($_SERVER['REQUEST_URI'], 'wp-admin/install.php') )
     306    if ( strstr($_SERVER['REQUEST_URI'], 'wp-admin/install.php') || constant('WP_INSTALLING') )
    307307        return false;
    308308
Note: See TracChangeset for help on using the changeset viewer.