WordPress.org

Make WordPress Core

Ticket #29783: 29783.9.diff

File 29783.9.diff, 380 bytes (added by johnjamesjacoby, 8 months ago)

Use $profileuser->locale instead of get_user_option( 'locale', $profileuser->ID ); when editing a user

  • src/wp-admin/user-edit.php

    diff --git src/wp-admin/user-edit.php src/wp-admin/user-edit.php
    index 92b4a75..c72f750 100644
     
    281281        </th> 
    282282        <td> 
    283283                <?php 
    284                 $user_locale = get_user_option( 'locale', $profileuser->ID ); 
     284                $user_locale = $profileuser->locale; 
    285285 
    286286                if ( 'en_US' === $user_locale ) { // en_US 
    287287                        $user_locale = false;