WordPress.org

Make WordPress Core

Ticket #32116: 32116.2.diff

File 32116.2.diff, 581 bytes (added by iamfriendly, 4 years ago)

added the correct PHPDoc for the additional parameter

  • wp-login.php

    diff --git wp-login.php wp-login.php
    index 7eb1a0c..17dd127 100644
    function retrieve_password() { 
    295295         * Fires before errors are returned from a password reset request.
    296296         *
    297297         * @since 2.1.0
     298         * @since 4.4.0 Added the `$errors` parameter.
    298299         *
    299          * @param WP_Error $errors A WP_Error object containing any errors generated by using invalid credentials (since 4.4.0)
     300         * @param WP_Error $errors A WP_Error object containing any errors generated by using invalid credentials
    300301         */
    301302        do_action( 'lostpassword_post', $errors );
    302303