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:
parent
e4f52df62c
commit
47f89b1d91
|
@ -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' );
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue