Changeset 33026
- Timestamp:
- 07/01/2015 03:38:09 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/maint/repair.php
r32830 r33026 36 36 foreach ( array( 'AUTH_KEY', 'SECURE_AUTH_KEY', 'LOGGED_IN_KEY', 'NONCE_KEY', 'AUTH_SALT', 'SECURE_AUTH_SALT', 'LOGGED_IN_SALT', 'NONCE_SALT' ) as $key ) { 37 37 if ( defined( $key ) ) { 38 // Check for unique values of each key. 38 39 $duplicated_keys[ constant( $key ) ] = isset( $duplicated_keys[ constant( $key ) ] ); 39 40 } else { 41 // If a constant is not defined, it's missing. 40 42 $missing_key = true; 41 43 } 42 44 } 43 45 46 // If at least one key uses the default value, consider it duplicated. 44 47 if ( isset( $duplicated_keys[ $default_key ] ) ) { 45 48 $duplicated_keys[ $default_key ] = true; 46 49 } 50 51 // Weed out all unique, non-default values. 47 52 $duplicated_keys = array_filter( $duplicated_keys ); 48 53 49 54 if ( $duplicated_keys || $missing_key ) { 50 55 // Translators: 1: wp-config.php; 2: Secret key service URL. 51 echo '<p>' . sprintf( __( 'While you are in your %1$s file, you should also make sure you have the 8 unique phrases in place. You can generate these using the <a href="%2$s">WordPress.org secret key service</a>.' ), '<code>wp-config.php</code>', 'https://api.wordpress.org/secret-key/1.1/salt/' ) . '</p>';56 echo '<p>' . sprintf( __( 'While you are editing your %1$s file, take a moment to make sure you have all 8 keys and that they are unique. You can generate these using the <a href="%2$s">WordPress.org secret key service</a>.' ), '<code>wp-config.php</code>', 'https://api.wordpress.org/secret-key/1.1/salt/' ) . '</p>'; 52 57 } 53 58
Note: See TracChangeset
for help on using the changeset viewer.