Make WordPress Core

Ticket #30509: 30509.patch

File 30509.patch, 904 bytes (added by stevegrunwell, 10 years ago)

Or, you know, the patch could be named properly.

  • src/wp-includes/pluggable.php

     
    19741974 *
    19751975 * @since 2.5.0
    19761976 *
    1977  * @param int $length The length of password to generate
     1977 * @param int $length The length of password to generate.
    19781978 * @param bool $special_chars Whether to include standard special characters. Default true.
    19791979 * @param bool $extra_special_chars Whether to include other special characters. Used when
    19801980 *   generating secret keys and salts. Default false.
    1981  * @return string The random password
    1982  **/
     1981 * @return string The random password.
     1982 */
    19831983function wp_generate_password( $length = 12, $special_chars = true, $extra_special_chars = false ) {
    19841984        $chars = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789';
    19851985        if ( $special_chars )