WordPress.org

Make WordPress Core

Changeset 29599


Ignore:
Timestamp:
08/25/2014 05:39:46 PM (6 years ago)
Author:
SergeyBiryukov
Message:

Send nocache_headers() on installation screens and when redirecting to them.

fixes #29248.

Location:
trunk/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/install.php

    r29516 r29599  
    4141/** Load wpdb */
    4242require_once( ABSPATH . WPINC . '/wp-db.php' );
     43
     44nocache_headers();
    4345
    4446$step = isset( $_GET['step'] ) ? (int) $_GET['step'] : 0;
  • trunk/src/wp-admin/setup-config.php

    r29206 r29599  
    3434
    3535require( ABSPATH . 'wp-admin/includes/upgrade.php' );
     36
     37nocache_headers();
    3638
    3739// Support wp-config-sample.php one level up, for the develop repo.
  • trunk/src/wp-includes/load.php

    r28656 r29599  
    467467function wp_not_installed() {
    468468    if ( is_multisite() ) {
    469         if ( ! is_blog_installed() && ! defined( 'WP_INSTALLING' ) )
     469        if ( ! is_blog_installed() && ! defined( 'WP_INSTALLING' ) ) {
     470            nocache_headers();
     471
    470472            wp_die( __( 'The site you have requested is not installed properly. Please contact the system administrator.' ) );
     473        }
    471474    } elseif ( ! is_blog_installed() && false === strpos( $_SERVER['PHP_SELF'], 'install.php' ) && !defined( 'WP_INSTALLING' ) ) {
     475        nocache_headers();
     476
    472477        require( ABSPATH . WPINC . '/kses.php' );
    473478        require( ABSPATH . WPINC . '/pluggable.php' );
Note: See TracChangeset for help on using the changeset viewer.