Make WordPress Core

Changeset 1219 for trunk/wp-settings.php


Ignore:
Timestamp:
05/01/2004 07:55:00 AM (21 years ago)
Author:
saxmatt
Message:

Use PATH_INFO instead of REQUEST_URI for better windows compatibility.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-settings.php

    r1190 r1219  
    3232$wpdb->hide_errors();
    3333$users = $wpdb->get_results("SELECT * FROM $tableusers");
    34 if (!$users && !strstr($_SERVER['REQUEST_URI'], 'install.php')) {
     34if (!$users && !strstr($_SERVER['PHP_SELF'], 'install.php')) {
    3535    die("It doesn't look like you've installed WP yet. Try running <a href='wp-admin/install.php'>install.php</a>.");
    3636}
     
    4444require_once (ABSPATH . WPINC . '/wp-l10n.php');
    4545
    46 if (!strstr($_SERVER['REQUEST_URI'], 'install.php') && !strstr($_SERVER['REQUEST_URI'], 'wp-admin/import')) {
     46if (!strstr($_SERVER['PHP_SELF'], 'install.php') && !strstr($_SERVER['PHP_SELF'], 'wp-admin/import')) {
    4747
    4848    $querystring_start = '?';
     
    6464}
    6565
    66 if (!strstr($_SERVER['REQUEST_URI'], 'wp-admin/plugins.php') && get_settings('active_plugins')) {
     66if (!strstr($_SERVER['PHP_SELF'], 'wp-admin/plugins.php') && get_settings('active_plugins')) {
    6767    $current_plugins = explode("\n", (get_settings('active_plugins')));
    6868    foreach ($current_plugins as $plugin) {
Note: See TracChangeset for help on using the changeset viewer.