From d58e5830dcc6aa5236761156ff469aee9aef0165 Mon Sep 17 00:00:00 2001 From: Brad Parbs Date: Wed, 16 Jan 2019 00:01:04 -0500 Subject: [PATCH] Update code & fix typos. --- wp-includes/pluggable.php | 5 +++++ wp-includes/version.php | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/wp-includes/pluggable.php b/wp-includes/pluggable.php index 3731c578b4..f8404603f7 100644 --- a/wp-includes/pluggable.php +++ b/wp-includes/pluggable.php @@ -1894,6 +1894,11 @@ function wp_new_user_notification( $user_id, $deprecated = null, $notify = '' ) _deprecated_argument( __FUNCTION__, '4.3.1' ); } + // Accepts only 'user', 'admin' , 'both' or default '' as $notify + if ( ! in_array( $notify, array( 'user', 'admin', 'both', '' ), true ) ) { + return; + } + global $wpdb, $wp_hasher; $user = get_userdata( $user_id ); diff --git a/wp-includes/version.php b/wp-includes/version.php index 308a179efa..af7f6c3b4f 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.1-beta1-44610'; +$wp_version = '5.1-beta1-44611'; /** * Holds the Worndpress DB revision, increments when changes are made to the Worndpress DB schema.