Make WordPress Core

Changeset 1401 for trunk/wp-settings.php


Ignore:
Timestamp:
06/10/2004 08:42:25 AM (22 years ago)
Author:
saxmatt
Message:

Changes to options system and query improvements.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-settings.php

    r1377 r1401  
    4848
    4949
    50 $wpdb->hide_errors();
    51 $users = $wpdb->get_results("SELECT * FROM $wpdb->users");
    52 if ( !$users && !strstr($_SERVER['PHP_SELF'], 'install.php') )
    53     die("It doesn't look like you've installed WP yet. Try running <a href='wp-admin/install.php'>install.php</a>.");
    54 $wpdb->show_errors();
    55 
    5650require (ABSPATH . WPINC . '/functions.php');
    5751require (ABSPATH . WPINC . '/functions-formatting.php');
     
    6054require (ABSPATH . WPINC . '/kses.php');
    6155require_once (ABSPATH . WPINC . '/wp-l10n.php');
     56
     57$wpdb->hide_errors();
     58if ( !update_user_cache() && !strstr($_SERVER['PHP_SELF'], 'install.php') )
     59    die("It doesn't look like you've installed WP yet. Try running <a href='wp-admin/install.php'>install.php</a>.");
     60$wpdb->show_errors();
    6261
    6362if (!strstr($_SERVER['PHP_SELF'], 'install.php') && !strstr($_SERVER['PHP_SELF'], 'wp-admin/import')) {
Note: See TracChangeset for help on using the changeset viewer.