Make WordPress Core

Opened 17 years ago

Closed 17 years ago

Last modified 16 years ago

#5339 closed enhancement (fixed)

Unused $pwd variable in wp_login() function

Reported by: epper's profile 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)

#1 @DD32
17 years ago

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

#2 @ryan
17 years ago

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

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

#3 @ryan
16 years ago

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