WordPress.org

Make WordPress Core

Changeset 45568


Ignore:
Timestamp:
06/27/2019 12:47:41 AM (8 months ago)
Author:
SergeyBiryukov
Message:

Users: Pass $length, $special_chars, and $extra_special_chars parameters to the random_password filter in wp_generate_password().

Props roytanck.
Fixes #47092.

File:
1 edited

Legend:

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

    r45565 r45568  
    23852385         *
    23862386         * @since 3.0.0
    2387          *
    2388          * @param string $password The generated password.
    2389          */
    2390         return apply_filters( 'random_password', $password );
     2387         * @since 5.3.0 Added the `$length`, `$special_chars`, and `$extra_special_chars` parameters.
     2388         *
     2389         * @param string $password            The generated password.
     2390         * @param int    $length              The length of password to generate.
     2391         * @param bool   $special_chars       Whether to include standard special characters.
     2392         * @param bool   $extra_special_chars Whether to include other special characters.
     2393         */
     2394        return apply_filters( 'random_password', $password, $length, $special_chars, $extra_special_chars );
    23912395    }
    23922396endif;
Note: See TracChangeset for help on using the changeset viewer.