Skip to content

Commit c4f902f

Browse files
committed
Remove $wp_secret_key_default.
With the duplicate key checks, this is isn't necessary. It could also cause problems when you temporarily update to an English translation of a new version before going back to the locale. see #19599. git-svn-id: https://develop.svn.wordpress.org/trunk@20691 602fd350-edb4-49c9-b593-d223f7449a82
1 parent c6f7bb0 commit c4f902f

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

wp-includes/pluggable.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1325,8 +1325,6 @@ function wp_create_nonce($action = -1) {
13251325
* @return string Salt value
13261326
*/
13271327
function wp_salt( $scheme = 'auth' ) {
1328-
global $wp_secret_key_default; // This is set for localized builds for versions > 3.4.0.
1329-
13301328
static $cached_salts = array();
13311329
if ( isset( $cached_salts[ $scheme ] ) )
13321330
return apply_filters( 'salt', $cached_salts[ $scheme ], $scheme );
@@ -1342,8 +1340,6 @@ function wp_salt( $scheme = 'auth' ) {
13421340
$duplicated_keys[ $value ] = isset( $duplicated_keys[ $value ] );
13431341
}
13441342
}
1345-
if ( ! empty( $wp_secret_key_default ) )
1346-
$duplicated_keys[ $wp_secret_key_default ] = true;
13471343
}
13481344

13491345
$key = $salt = '';

0 commit comments

Comments
 (0)