Make WordPress Core


Ignore:
Timestamp:
01/19/2022 01:16:44 PM (5 years ago)
Author:
SergeyBiryukov
Message:

Docs: Further update the send_retrieve_password_email filter documentation for consistency.

Follow-up to [52604], [52605].

See #54690.

File:
1 edited

Legend:

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

    r52605 r52606  
    29422942         * Filters whether to send the retrieve password email.
    29432943         *
     2944         * Return false to disable sending the email.
     2945         *
    29442946         * @since 6.0.0
    29452947         *
    2946          * @param bool $send False to prevent sending. Default true.
     2948         * @param bool $send Whether to send the email.
    29472949         */
    29482950        if ( ! apply_filters( 'send_retrieve_password_email', true ) ) {
    … …  
    30443046         * @since 6.0.0
    30453047         *
    3046          * @param array $defaults {
     3048         * @param array $notification_email {
    30473049         *     The default notification email arguments. Used to build wp_mail().
    30483050         *
    … …  
    30603062         * }
    30613063         */
    3062         $notification_email = apply_filters( 'retrieve_password_notification_email', $defaults, $data );
     3064        $notification_email = apply_filters( 'retrieve_password_notification_email', $notification_email, $data );
    30633065
    30643066        if ( $switched_locale ) {
Note: See TracChangeset for help on using the changeset viewer.