diff options
author | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2007-10-15 15:22:25 +0000 |
---|---|---|
committer | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2007-10-15 15:22:25 +0000 |
commit | 157499c240c15fb5bdd3e5ac23f7153638b0b3dc (patch) | |
tree | 7e917ca0e00905465512ddb1166c239bde76a5c6 /wp-includes | |
parent | 6cf8cd1294f2198b32e7667a440a840dac4ffa52 (diff) | |
download | wordpress-mu-157499c240c15fb5bdd3e5ac23f7153638b0b3dc.tar.gz wordpress-mu-157499c240c15fb5bdd3e5ac23f7153638b0b3dc.tar.xz wordpress-mu-157499c240c15fb5bdd3e5ac23f7153638b0b3dc.zip |
All safe redirects in login form
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@1076 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-includes')
-rw-r--r-- | wp-includes/wpmu-functions.php | 6 |
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' ); ?> |