diff --git a/wp-admin/includes/misc.php b/wp-admin/includes/misc.php index d03c1df57b..887c4e2561 100644 --- a/wp-admin/includes/misc.php +++ b/wp-admin/includes/misc.php @@ -1158,7 +1158,7 @@ function update_option_new_admin_email( $old_value, $value ) { return; } - $hash = md5( $value . time() . mt_rand() ); + $hash = md5( $value . time() . wp_rand() ); $new_admin_email = array( 'hash' => $hash, 'newemail' => $value, diff --git a/wp-includes/user.php b/wp-includes/user.php index 703d2bcf0f..fa4ea7a7ba 100644 --- a/wp-includes/user.php +++ b/wp-includes/user.php @@ -2650,7 +2650,7 @@ function send_confirmation_on_profile_email() { return; } - $hash = md5( $_POST['email'] . time() . mt_rand() ); + $hash = md5( $_POST['email'] . time() . wp_rand() ); $new_user_email = array( 'hash' => $hash, 'newemail' => $_POST['email'], diff --git a/wp-includes/version.php b/wp-includes/version.php index ac3699b3e6..124840a43a 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.9.7-alpha-43366'; +$wp_version = '4.9.7-alpha-43368'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.