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
This commit is contained in:
Dominik Schilling 2014-11-26 20:56:23 +00:00
parent e4f52df62c
commit 47f89b1d91
2 changed files with 2 additions and 2 deletions

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.' ) ); 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(); nocache_headers();
require( ABSPATH . WPINC . '/kses.php' ); require( ABSPATH . WPINC . '/kses.php' );

View File

@ -4,7 +4,7 @@
* *
* @global string $wp_version * @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. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.