Closed (fixed)
Project:
Drupal core
Version:
9.5.x-dev
Component:
user.module
Priority:
Minor
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
6 Sep 2015 at 15:29 UTC
Updated:
2 Aug 2022 at 08:29 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
temoor commentedComment #3
temoor commentedComment #4
andypostComment #7
dawehnerIts not a bad idea to get less function calls there.
Comment #8
m1r1k commentedThen let go! :)
Comment #9
alexpott@dawehner well we actually might have extra function calls. Still need a beta evaluation and I don't really see how this change is necessary tbh. We should probably do this in 8.1
Comment #10
andypost"removing unused and untested functionality" makes this change prioritized but require unit-test that will show that method called twice
also it could have a performance impact because makes early exit in function that used a lot
Comment #11
daffie commentedSee comment #10.
Comment #23
rakhi soni commentedKindly review patch,,
Comment #24
rakhi soni commentedComment #25
andypostI see no reason in tests as the function used mostly everywhere in core
Comment #26
andypostClearer title
Comment #27
andypostI think it good to go as is
Comment #30
catchAgreed this doesn't need explicit test coverage, it's functionally identical just with less function calls.
Committed/pushed to 10.1.x and cherry-picked to 10.0.x and 9.5.x, thanks!