From bc5a539c4d9544aa5011c5d2185cc16f36bf2cb7 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sun, 29 Apr 2018 23:05:21 +0000 Subject: [PATCH] Login and Registration: Send `nocache_headers()` on Multisite signup pages. Props herregroen. Fixes #43843. Built from https://develop.svn.wordpress.org/trunk@43030 git-svn-id: http://core.svn.wordpress.org/trunk@42859 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/version.php | 2 +- wp-signup.php | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/wp-includes/version.php b/wp-includes/version.php index 7fa2d62418..62ce39a19d 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '5.0-alpha-43027'; +$wp_version = '5.0-alpha-43030'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. diff --git a/wp-signup.php b/wp-signup.php index 92b6a21b4a..7ff5ebc8d4 100644 --- a/wp-signup.php +++ b/wp-signup.php @@ -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();