Make WordPress Core

Changeset 1980 for trunk/wp-settings.php


Ignore:
Timestamp:
12/19/2004 07:26:43 AM (21 years ago)
Author:
saxmatt
Message:

Bug fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-settings.php

    r1964 r1980  
    5959
    6060require (ABSPATH . WPINC . '/functions.php');
     61
     62$wpdb->hide_errors();
     63if ( !update_user_cache() && !strstr($_SERVER['PHP_SELF'], 'install.php') )
     64    die("It doesn't look like you've installed WP yet. Try running <a href='wp-admin/install.php'>install.php</a>.");
     65$wpdb->show_errors();
     66
    6167require (ABSPATH . WPINC . '/functions-formatting.php');
    6268require (ABSPATH . WPINC . '/functions-post.php');
     
    6773
    6874require_once (ABSPATH . WPINC . '/wp-l10n.php');
    69 
    70 $wpdb->hide_errors();
    71 if ( !update_user_cache() && !strstr($_SERVER['PHP_SELF'], 'install.php') )
    72     die("It doesn't look like you've installed WP yet. Try running <a href='wp-admin/install.php'>install.php</a>.");
    73 $wpdb->show_errors();
    7475
    7576if (!strstr($_SERVER['PHP_SELF'], 'install.php') && !strstr($_SERVER['PHP_SELF'], 'wp-admin/import')) :
Note: See TracChangeset for help on using the changeset viewer.