Changeset 7798
- Timestamp:
- 04/24/08 00:33:19 (7 months ago)
- Files:
-
- branches/2.5/wp-admin/includes/schema.php (modified) (1 diff)
- branches/2.5/wp-admin/includes/upgrade.php (modified) (2 diffs)
- branches/2.5/wp-includes/pluggable.php (modified) (1 diff)
- branches/2.5/wp-includes/version.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/2.5/wp-admin/includes/schema.php
r7165 r7798 231 231 232 232 // 2.0.3 233 add_option('secret', wp_generate_password( ));233 add_option('secret', wp_generate_password(64)); 234 234 235 235 // 2.1 branches/2.5/wp-admin/includes/upgrade.php
r7629 r7798 202 202 if ( $wp_current_db_version < 7499 ) 203 203 upgrade_250(); 204 205 if ( $wp_current_db_version < 7796 ) 206 upgrade_251(); 204 207 205 208 maybe_disable_automattic_widgets(); … … 728 731 } 729 732 733 } 734 735 function upgrade_251() { 736 global $wp_current_db_version; 737 738 // Make the secret longer 739 update_option('secret', wp_generate_password(64)); 730 740 } 731 741 branches/2.5/wp-includes/pluggable.php
r7688 r7798 1168 1168 * @return string The random password 1169 1169 **/ 1170 function wp_generate_password() { 1171 $chars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"; 1172 $length = 7; 1170 function wp_generate_password($length = 12) { 1171 $chars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!@#$%^&*()"; 1173 1172 $password = ''; 1174 1173 for ( $i = 0; $i < $length; $i++ ) 1175 $password .= substr($chars, mt_rand(0, 61), 1);1174 $password .= substr($chars, mt_rand(0, strlen($chars)), 1); 1176 1175 return $password; 1177 1176 } branches/2.5/wp-includes/version.php
r7583 r7798 17 17 * @global int $wp_db_version 18 18 */ 19 $wp_db_version = 7 583;19 $wp_db_version = 7796; 20 20 21 21 ?>
