Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
In user.module we are calling \Drupal::languageManager() twice. Seems unnecessary.
Comment | File | Size | Author |
---|---|---|---|
#2 | reduce_duplication_in-2806523-2.patch | 707 bytes | eiriksm |
Comments
Comment #2
eiriksmComment #3
xito CreditAttribution: xito as a volunteer and at NTT DATA commentedI saw that the duplicate call has been removed in user_name, so I am going to to propose to be tested and reviewed by the community.
Comment #4
alexpottCommitted 3153a4e and pushed to 8.3.x. Thanks!