mirror of
https://github.com/WordPress/WordPress.git
synced 2024-09-28 23:27:39 +02:00
Docs: Mark the $notify
parameter in the DocBlock for wp_new_user_notification()
as optional, and provide additional context on the difference between the accepted values.
See [33620] and [33023] for background. See #32246. Built from https://develop.svn.wordpress.org/trunk@33664 git-svn-id: http://core.svn.wordpress.org/trunk@33631 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
d65112d382
commit
bec5bcf717
@ -1691,8 +1691,9 @@ if ( !function_exists('wp_new_user_notification') ) :
|
|||||||
* @since 4.3.0 The `$plaintext_pass` parameter was changed to `$notify`.
|
* @since 4.3.0 The `$plaintext_pass` parameter was changed to `$notify`.
|
||||||
*
|
*
|
||||||
* @param int $user_id User ID.
|
* @param int $user_id User ID.
|
||||||
* @param string $notify Whether admin and user should be notified ('both') or
|
* @param string $notify Optional. Type of notification that should happen. Accepts 'admin' or an empty
|
||||||
* only the admin ('admin' or empty).
|
* string (admin only), or 'both' (admin and user). The empty string value was kept
|
||||||
|
* for backward-compatibility purposes with the renamed parameter. Default empty.
|
||||||
*/
|
*/
|
||||||
function wp_new_user_notification( $user_id, $notify = '' ) {
|
function wp_new_user_notification( $user_id, $notify = '' ) {
|
||||||
global $wpdb;
|
global $wpdb;
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.4-alpha-33663';
|
$wp_version = '4.4-alpha-33664';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
Reference in New Issue
Block a user