From 47f89b1d91eb8eadd071750f94c31437014298eb Mon Sep 17 00:00:00 2001 From: Dominik Schilling Date: Wed, 26 Nov 2014 20:56:23 +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. Built from https://develop.svn.wordpress.org/trunk@30581 git-svn-id: http://core.svn.wordpress.org/trunk@30571 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/load.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/load.php b/wp-includes/load.php index 07f2283ab9..c578c8de73 100644 --- a/wp-includes/load.php +++ b/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' ); diff --git a/wp-includes/version.php b/wp-includes/version.php index 4545bc9d9f..8c13123c3c 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.1-beta2-30580'; +$wp_version = '4.1-beta2-30581'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.