mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 20:30:23 +00:00
Send nocache_headers() on installation screens and when redirecting to them.
fixes #29248. git-svn-id: https://develop.svn.wordpress.org/trunk@29599 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -466,9 +466,14 @@ function wp_start_object_cache() {
|
||||
*/
|
||||
function wp_not_installed() {
|
||||
if ( is_multisite() ) {
|
||||
if ( ! is_blog_installed() && ! defined( 'WP_INSTALLING' ) )
|
||||
if ( ! is_blog_installed() && ! defined( 'WP_INSTALLING' ) ) {
|
||||
nocache_headers();
|
||||
|
||||
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' ) ) {
|
||||
nocache_headers();
|
||||
|
||||
require( ABSPATH . WPINC . '/kses.php' );
|
||||
require( ABSPATH . WPINC . '/pluggable.php' );
|
||||
require( ABSPATH . WPINC . '/formatting.php' );
|
||||
|
||||
Reference in New Issue
Block a user