summaryrefslogtreecommitdiffstats
path: root/wp-includes/wpmu-functions.php
diff options
context:
space:
mode:
authordonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2008-07-07 15:35:43 +0000
committerdonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2008-07-07 15:35:43 +0000
commit62cf455ec3bed02f518048f8ddca91a23e6b95a4 (patch)
tree9ff819fc4c6112ce08a38c07ab8a729642c8332c /wp-includes/wpmu-functions.php
parent9f31c4ced9504d2142a035f96e05c00b59db104d (diff)
downloadwordpress-mu-62cf455ec3bed02f518048f8ddca91a23e6b95a4.tar.gz
wordpress-mu-62cf455ec3bed02f518048f8ddca91a23e6b95a4.tar.xz
wordpress-mu-62cf455ec3bed02f518048f8ddca91a23e6b95a4.zip
Only check the nonce on the signup page
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@1354 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-includes/wpmu-functions.php')
-rw-r--r--wp-includes/wpmu-functions.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/wp-includes/wpmu-functions.php b/wp-includes/wpmu-functions.php
index 8f73360..8f10044 100644
--- a/wp-includes/wpmu-functions.php
+++ b/wp-includes/wpmu-functions.php
@@ -1930,6 +1930,9 @@ function signup_nonce_fields() {
add_action( 'signup_hidden_fields', 'signup_nonce_fields' );
function signup_nonce_check( $result ) {
+ if( !strpos( $_SERVER[ 'PHP_SELF' ], 'wp-signup.php' ) )
+ return $result;
+
if ( wp_create_nonce('signup_form_' . $_POST[ 'signup_form_id' ]) != $_POST['_signup_form'] )
wp_die( 'Please try again!' );