Make WordPress Core

Changeset 52607


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

Users: Revert the variable change in [52606] that caused the tests to fail.

Follow-up to [52604-52606].

Props audrasjb.
See #54690.

File:
1 edited

Legend:

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

    r52606 r52607  
    30313031    }
    30323032
    3033     // Wrap the single notification email arguments in an array to pass them to the retrieve_password_notification_email filter.
     3033    /*
     3034     * Wrap the single notification email arguments in an array
     3035     * to pass them to the retrieve_password_notification_email filter.
     3036     */
    30343037    $defaults = array(
    30353038        'to'      => $user_email,
     
    30463049     * @since 6.0.0
    30473050     *
    3048      * @param array $notification_email {
     3051     * @param array $defaults {
    30493052     *     The default notification email arguments. Used to build wp_mail().
    30503053     *
     
    30623065     * }
    30633066     */
    3064     $notification_email = apply_filters( 'retrieve_password_notification_email', $notification_email, $data );
     3067    $notification_email = apply_filters( 'retrieve_password_notification_email', $defaults, $data );
    30653068
    30663069    if ( $switched_locale ) {
Note: See TracChangeset for help on using the changeset viewer.