Make WordPress Core

Opened 6 years ago

Closed 6 years ago

#30096 closed enhancement (fixed)

Remove unnecessary $key reference from foreach

Reported by: ipm-frommen Owned by: SergeyBiryukov
Milestone: 4.1 Priority: normal
Severity: normal Version:
Component: Users Keywords: has-patch
Focuses: Cc:


Removed two references to $key variable in foreach loops without ever using it.

Attachments (1)

30096.diff (958 bytes) - added by ipm-frommen 6 years ago.

Download all attachments as: .zip

Change History (3)

6 years ago

#1 @SergeyBiryukov
6 years ago

  • Milestone changed from Awaiting Review to 4.1

#2 @SergeyBiryukov
6 years ago

  • Owner set to SergeyBiryukov
  • Resolution set to fixed
  • Status changed from new to closed

In 30020:

Users screen in network admin:

  • Remove unused $key variables.
  • Rename $val to $user_id for clarity.

props ipm-frommen.
fixes #30096.

Note: See TracTickets for help on using tickets.