Make WordPress Core


Ignore:
Timestamp:
09/20/2022 11:55:21 AM (21 months ago)
Author:
audrasjb
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/maint/repair.php

    r49750 r54249  
    3838    echo "</p><p><code>define('WP_ALLOW_REPAIR', true);</code></p>";
    3939
    40     $default_key     = 'put your unique phrase here';
     40    $default_key     = __( 'put your unique phrase here' );
    4141    $missing_key     = false;
    4242    $duplicated_keys = array();
Note: See TracChangeset for help on using the changeset viewer.