Make WordPress Core

Ticket #49521: 49521.2.patch

File 49521.2.patch, 681 bytes (added by dilipbheda, 5 years ago)

I did change in filter comment area. I am not sure it is better to understand or not for our user.

  • src/wp-login.php

    diff --git a/src/wp-login.php b/src/wp-login.php
    index 0b552ef326..0000d0f59c 100644
    a b function retrieve_password() { 
    387387         */
    388388        do_action( 'lostpassword_post', $errors, $user_data );
    389389
     390        /**
     391         * Filters the errors encountered from a password reset request.
     392         *
     393         * @since 5.4.0
     394         *
     395         * @param WP_Error       $errors     A WP_Error object containing any errors encountered.
     396         *
     397         * @param WP_User|false  $user_data  WP_User object if found, false if the user does not exist.
     398         */
     399        $errors = apply_filters( 'lostpassword_errors', $errors, $user_data );
     400
    390401        if ( $errors->has_errors() ) {
    391402                return $errors;
    392403        }