diff --git a/src/wp-includes/pluggable.php b/src/wp-includes/pluggable.php
index cb06297b57..f4e9c16492 100644
a
|
b
|
if ( ! function_exists( 'wp_new_user_notification' ) ) : |
1892 | 1892 | _deprecated_argument( __FUNCTION__, '4.3.1' ); |
1893 | 1893 | } |
1894 | 1894 | |
| 1895 | // Accepts only 'user', 'admin' , 'both' or default '' as $notify |
| 1896 | if( false == ( empty($notify) || in_array( $notify, array('user','admin','both'),true ) ) ) { |
| 1897 | return; |
| 1898 | } |
| 1899 | |
1895 | 1900 | global $wpdb, $wp_hasher; |
1896 | 1901 | $user = get_userdata( $user_id ); |
1897 | 1902 | |