diff --git a/wp-includes/ms-functions.php b/wp-includes/ms-functions.php index ebc699436d..f2dbbc750f 100644 --- a/wp-includes/ms-functions.php +++ b/wp-includes/ms-functions.php @@ -2193,8 +2193,8 @@ function signup_nonce_check( $result ) { return $result; } - if ( wp_create_nonce( 'signup_form_' . $_POST['signup_form_id'] ) != $_POST['_signup_form'] ) { - wp_die( __( 'Please try again.' ) ); + if ( ! wp_verify_nonce( $_POST['_signup_form'], 'signup_form_' . $_POST['signup_form_id'] ) ) { + $result['errors']->add( 'invalid_nonce', __( 'Unable to submit this form, please try again.' ) ); } return $result; diff --git a/wp-includes/version.php b/wp-includes/version.php index 145daf2a67..0174704beb 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '5.0-alpha-42975'; +$wp_version = '5.0-alpha-42976'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.