WordPress.org

Make WordPress Core

Opened 8 years ago

Closed 8 years ago

Last modified 7 years ago

#5339 closed enhancement (fixed)

Unused $pwd variable in wp_login() function

Reported by: epper Owned by:
Milestone: 2.5 Priority: low
Severity: minor Version:
Component: Optimization Keywords:
Focuses: Cc:

Description

I was looking the code of wp_login() in wp-includes/pluggable.php and I've seen that there's an unused variable: $pwd on line 305:

303 	        } else {
304 	            $error = __('<strong>ERROR</strong>: Incorrect password.');
305 	            $pwd = '';
306 	            return false;
307 	        }

Change History (3)

comment:1 @DD328 years ago

Perhaps #2244 should be decided upon too, I think i removed that variable in the patch there too.

comment:2 @ryan8 years ago

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

(In [6330]) Remove unused variable. Props epper. fixes #5339

comment:3 @ryan7 years ago

  • Milestone changed from 2.3.2 to 2.4
Note: See TracTickets for help on using tickets.