Security: Salting functions: translate the phrase "put your unique phrase here".
In `wp_salt()` WordPress pre-populates the check for duplicate salt values with the default put your unique phrase here. As the `wp-config.php file` for non-en_US can be translated in downloaded packages, a translated version of this phrase ought to be in the pre-populated duplicate values array too. Props peterwilsoncc, SergeyBiryukov, whaze, costdev, audrasjb. Fixes #55937. Built from https://develop.svn.wordpress.org/trunk@54249 git-svn-id: http://core.svn.wordpress.org/trunk@53808 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -2408,7 +2408,15 @@ if ( ! function_exists( 'wp_salt' ) ) :
|
||||
|
||||
static $duplicated_keys;
|
||||
if ( null === $duplicated_keys ) {
|
||||
$duplicated_keys = array( 'put your unique phrase here' => true );
|
||||
$duplicated_keys = array(
|
||||
'put your unique phrase here' => true,
|
||||
/*
|
||||
* translators: This string should only be translated if wp-config-sample.php is localized.
|
||||
* You can check the localized release package or
|
||||
* https://i18n.svn.wordpress.org/<locale code>/branches/<wp version>/dist/wp-config-sample.php
|
||||
*/
|
||||
__( 'put your unique phrase here' ) => true,
|
||||
);
|
||||
foreach ( array( 'AUTH', 'SECURE_AUTH', 'LOGGED_IN', 'NONCE', 'SECRET' ) as $first ) {
|
||||
foreach ( array( 'KEY', 'SALT' ) as $second ) {
|
||||
if ( ! defined( "{$first}_{$second}" ) ) {
|
||||
|
||||
Reference in New Issue
Block a user