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.

git-svn-id: https://develop.svn.wordpress.org/trunk@30581 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Dominik Schilling (ocean90) 2014-11-26 20:55:19 +00:00
parent f534936cfe
commit 94fad7cd07

View File

@ -471,7 +471,7 @@ function wp_not_installed() {
wp_die( __( 'The site you have requested is not installed properly. Please contact the system administrator.' ) );
}
} elseif ( ! is_blog_installed() && false === strpos( $_SERVER['PHP_SELF'], 'install.php' ) && !defined( 'WP_INSTALLING' ) ) {
} elseif ( ! is_blog_installed() && ! defined( 'WP_INSTALLING' ) ) {
nocache_headers();
require( ABSPATH . WPINC . '/kses.php' );