From 94fad7cd071de3e9fac12faf588ab1f861f7c219 Mon Sep 17 00:00:00 2001 From: "Dominik Schilling (ocean90)" Date: Wed, 26 Nov 2014 20:55:19 +0000 Subject: [PATCH] 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 --- src/wp-includes/load.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/load.php b/src/wp-includes/load.php index 07f2283ab9..c578c8de73 100644 --- a/src/wp-includes/load.php +++ b/src/wp-includes/load.php @@ -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' );