Make WordPress Core

Changeset 30581


Ignore:
Timestamp:
11/26/2014 08:55:19 PM (10 years ago)
Author:
ocean90
Message:

Remove unbounded check for "install.php" in wp_not_installed().

The check is true for wp-admin/plugin-install.php and wp-admin/theme-install.php too. This will end in a redirect to /wp-admin/upgrade.php or a screen with a bunch of errors.
The WP_INSTALLING constant was added in WordPress 1.5.1 to wp-admin/install.php which makes the check for "install.php" redundant.

props joemcgill.
fixes #29694.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/load.php

    r29599 r30581  
    472472            wp_die( __( 'The site you have requested is not installed properly. Please contact the system administrator.' ) );
    473473        }
    474     } elseif ( ! is_blog_installed() && false === strpos( $_SERVER['PHP_SELF'], 'install.php' ) && !defined( 'WP_INSTALLING' ) ) {
     474    } elseif ( ! is_blog_installed() && ! defined( 'WP_INSTALLING' ) ) {
    475475        nocache_headers();
    476476
Note: See TracChangeset for help on using the changeset viewer.