Changeset 13206
- Timestamp:
- 02/19/2010 12:03:36 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/pluggable.php
r13204 r13206 1463 1463 * @param int $length The length of password to generate 1464 1464 * @param bool $special_chars Whether to include standard special characters. Default true. 1465 * @param bool $extra_special_chars Whether to include more special characters. Used1466 * whengenerating secret keys and salts. Default false.1465 * @param bool $extra_special_chars Whether to include other special characters. Used when 1466 * generating secret keys and salts. Default false. 1467 1467 * @return string The random password 1468 1468 **/ 1469 1469 function wp_generate_password( $length = 12, $special_chars = true, $extra_special_chars = false ) { 1470 1470 $chars = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'; 1471 if ( $special_chars ) {1471 if ( $special_chars ) 1472 1472 $chars .= '!@#$%^&*()'; 1473 if ( $extra_special_chars ) 1474 $chars .= '-_ []{}<>~`+=,.;:/?|'; 1475 } 1473 if ( $extra_special_chars ) 1474 $chars .= '-_ []{}<>~`+=,.;:/?|'; 1476 1475 1477 1476 $password = '';
Note: See TracChangeset
for help on using the changeset viewer.