Changeset 7837 for branches/2.5/wp-includes/pluggable.php
- Timestamp:
- 04/25/2008 05:12:56 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.5/wp-includes/pluggable.php
r7822 r7837 1169 1169 * @return string The random password 1170 1170 **/ 1171 function wp_generate_password($length = 12) { 1172 $chars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!@#$%^&*()"; 1171 function wp_generate_password($length = 12, $special_chars = true) { 1172 $chars = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'; 1173 if ( $special_chars ) 1174 $chars .= '!@#$%^&*()'; 1175 1173 1176 $password = ''; 1174 1177 for ( $i = 0; $i < $length; $i++ )
Note: See TracChangeset
for help on using the changeset viewer.