Skip to content

Commit

Permalink
Update code & fix typos.
Browse files Browse the repository at this point in the history
  • Loading branch information
bradp committed Jan 16, 2019
1 parent 4e700a7 commit d58e583
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions wp-includes/pluggable.php
Expand Up @@ -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 );

Expand Down
2 changes: 1 addition & 1 deletion wp-includes/version.php
Expand Up @@ -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.
Expand Down

0 comments on commit d58e583

Please sign in to comment.