WordPress.org

Make WordPress Core

Ticket #47092: 47092.diff

File 47092.diff, 810 bytes (added by roytanck, 10 months ago)

Patch adding $special_chars and $extra_special_chars to the 'random_password' hook.

  • wp-includes/pluggable.php

     
    23882388                 * @since 3.0.0
    23892389                 *
    23902390                 * @param string $password The generated password.
     2391                 * @param bool $special_chars       Optional. Whether to include standard special characters.
     2392                 *                                  Default true.
     2393                 * @param bool $extra_special_chars Optional. Whether to include other special characters.
     2394                 *                                  Used when generating secret keys and salts. Default false.
    23912395                 */
    2392                 return apply_filters( 'random_password', $password );
     2396                return apply_filters( 'random_password', $password, $special_chars, $extra_special_chars );
    23932397        }
    23942398endif;
    23952399