Make WordPress Core

Changeset 33664


Ignore:
Timestamp:
08/20/2015 06:26:00 PM (9 years ago)
Author:
DrewAPicture
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/pluggable.php

    r33620 r33664  
    16921692 *
    16931693 * @param int    $user_id User ID.
    1694  * @param string $notify  Whether admin and user should be notified ('both') or
    1695  *                        only the admin ('admin' or empty).
     1694 * @param string $notify  Optional. Type of notification that should happen. Accepts 'admin' or an empty
     1695 *                        string (admin only), or 'both' (admin and user). The empty string value was kept
     1696 *                        for backward-compatibility purposes with the renamed parameter. Default empty.
    16961697 */
    16971698function wp_new_user_notification( $user_id, $notify = '' ) {
Note: See TracChangeset for help on using the changeset viewer.