Ticket #5367: secret_key.2.diff
| File secret_key.2.diff, 1.4 kB (added by ryan, 8 months ago) |
|---|
-
wp-includes/pluggable.php
old new 699 699 700 700 if ( !function_exists('wp_salt') ) : 701 701 function wp_salt() { 702 703 if ( defined('SECRET_KEY') && '' != SECRET_KEY ) 704 return SECRET_KEY; 705 702 706 $salt = get_option('secret'); 703 707 if ( empty($salt) ) { 704 708 $salt = wp_generate_password(); 705 709 update_option('secret', $salt); 706 710 } 707 711 708 if ( !defined('SECRET_KEY') || '' == SECRET_KEY ) 709 $secret_key = DB_PASSWORD . DB_USER . DB_NAME . DB_HOST . ABSPATH; 710 else 711 $secret_key = SECRET_KEY; 712 713 return $salt . $secret_key; 712 return $salt; 714 713 } 715 714 endif; 716 715 -
wp-config-sample.php
old new 6 6 define('DB_HOST', 'localhost'); // 99% chance you won't need to change this value 7 7 define('DB_CHARSET', 'utf8'); 8 8 define('DB_COLLATE', ''); 9 10 // Change SECRET_KEY to a unique phrase. You won't have to remember it later, 11 // so make it long and complicated. You can visit https://www.grc.com/passwords.htm 12 // to get a phrase generated for you. 9 13 define('SECRET_KEY', ''); // Change this to a unique phrase. 10 14 11 15 // You can have multiple installations in one database if you give each a unique prefix
