Login and Registration: Send `nocache_headers()` on Multisite signup pages.

Props herregroen.
Fixes #43843.

git-svn-id: https://develop.svn.wordpress.org/trunk@43030 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2018-04-29 23:04:28 +00:00
parent a6fa935244
commit 0041e393c1
1 changed files with 2 additions and 0 deletions

View File

@ -7,6 +7,8 @@ add_action( 'wp_head', 'wp_no_robots' );
require( dirname( __FILE__ ) . '/wp-blog-header.php' );
nocache_headers();
if ( is_array( get_site_option( 'illegal_names' ) ) && isset( $_GET['new'] ) && in_array( $_GET['new'], get_site_option( 'illegal_names' ) ) ) {
wp_redirect( network_home_url() );
die();