[wp-trac] [WordPress Trac] #62424: Warning in wp_salt() since 6.7

WordPress Trac noreply at wordpress.org
Thu Nov 14 11:23:39 UTC 2024


#62424: Warning in wp_salt() since 6.7
--------------------------+-----------------------------
 Reporter:  juliobox      |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  6.7
 Severity:  normal        |   Keywords:  2nd-opinion
  Focuses:                |
--------------------------+-----------------------------
 Hey there
 This is the error I get:
 Warning: Undefined array key "..." in /wp-includes/pluggable.php on line
 2517
 with the "..." being my salt key, got this messages for each key.

 How to trigger:
 1. Move your salt keys to a mu-plugin
 2. add a simple plugin doing this:
         add_filter( 'gettext', function( $translation ) {
         get_user_locale();
         return $translation;
         });

 What's missing in the new code adde in wp_salt:
 `if ( ! defined( $const ) | |true === $duplicated_keys[ constant( $const )
 ] ) {`
 here we check true === but not if isset. we should right?

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/62424>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list