summaryrefslogtreecommitdiffstats
path: root/wp-includes
diff options
context:
space:
mode:
Diffstat (limited to 'wp-includes')
-rw-r--r--wp-includes/wpmu-functions.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/wp-includes/wpmu-functions.php b/wp-includes/wpmu-functions.php
index a5126d6..7950ef5 100644
--- a/wp-includes/wpmu-functions.php
+++ b/wp-includes/wpmu-functions.php
@@ -1917,4 +1917,10 @@ function choose_primary_blog() {
}
}
add_action( 'profile_personal_options', 'choose_primary_blog' );
+
+function redirect_this_site( $hosts ) {
+ global $current_site;
+ return array( $current_site->domain );
+}
+add_filter( 'allowed_redirect_hosts', 'redirect_this_site' );
?>