Make WordPress Core

Changeset 52606


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

Docs: Further update the send_retrieve_password_email filter documentation for consistency.

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

See #54690.

Location:
trunk
Files:
2 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 ) {
  • trunk/tests/phpunit/tests/user/retrievePassword.php

    r52605 r52606  
    4343
    4444    /**
    45      * The function should error when the email was not sent.
     45     * The function should not error when the email was sent.
     46     *
    4647     * @ticket 54690
    4748     */
     
    5354    /**
    5455     * The function should error when the email was not sent.
     56     *
    5557     * @ticket 54690
    5658     */
Note: See TracChangeset for help on using the changeset viewer.