Changeset 14318 for trunk/wp-admin/includes/ms.php
- Timestamp:
- 04/30/2010 03:25:54 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/includes/ms.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/ms.php
r14243 r14318 661 661 if ( !is_super_admin() ) 662 662 return; 663 $secret_keys = array( ' NONCE_KEY', 'NONCE_SALT', 'AUTH_KEY', 'AUTH_SALT', 'LOGGED_IN_KEY', 'LOGGED_IN_SALT', 'SECURE_AUTH_KEY', 'SECURE_AUTH_SALT' );663 $secret_keys = array( 'AUTH_KEY', 'SECURE_KEY', 'LOGGED_IN_KEY', 'NONCE_KEY', 'AUTH_SALT', 'SECURE_SALT', 'LOGGED_IN_SALT', 'NONCE_SALT' ); 664 664 $out = ''; 665 665 foreach( $secret_keys as $key ) { 666 if ( ! defined( $key ) )667 $out .= "define( '$key', '" . wp_generate_password() . wp_generate_password() . "' );<br />";666 if ( ! defined( $key ) ) 667 $out .= "define( '$key', '" . esc_html( wp_generate_password( 64, true, true ) ) . "' );<br />"; 668 668 } 669 669 if ( $out != '' ) { 670 $msg = sprintf( __( 'Warning! WordPress encrypts user cookies, but you must add the following lines to <strong>%swp-config.php</strong> for it to be more secure.<br />Please add the code before the line, <code>/* That\'s all, stop editing! Happy blogging. */</code>' ), ABSPATH ); 671 $msg .= "<blockquote>$out</blockquote>"; 670 $msg = __( 'Warning! WordPress encrypts user cookies, but you must add the following lines to <strong>wp-config.php</strong> for it to be more secure.' ); 671 $msg .= '<br/>' . __( "Before the line <code>/* That's all, stop editing! Happy blogging. */</code> please add this code:" ); 672 $msg .= "<br/><br/><code>$out</code>"; 672 673 673 674 echo "<div id='update-nag'>$msg</div>";
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)