WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Hi I am using the wp_login_form function and when it displays the password field always displays the word undefined. If I remove that when logging in the form works fine. Anyone know why this placeholder value is there no matter what instance I use it in (page, post,theme)


share|improve this question
The label for the password field read undefined? Or the password defaults to undefined? – mor7ifer Jan 30 '12 at 17:18
The password defaults to undefined. – Deon Jan 30 '12 at 18:19
How are you able to read the password? Shouldn't it be ****'s or something? – mor7ifer Jan 30 '12 at 18:21
All I did was put wp_login_form function in a div and in the password field box it shows up UNDEFINED. Then I put my cursor in there to clear the box out and yes my password does show as *****. No problem with that part. I am just trying to figure out where the UNDEFINED is coming from as a default in the box. – Deon Jan 30 '12 at 20:19
Can you post a screenshot? – mor7ifer Jan 30 '12 at 21:30

Unless you've got something weird going on with your wordpress install, that's coming from something that's not wordpress, value for both username and password is set to '' in the source, there's not even anything that could be done with hooks to cause that. I suggest you look in different browsers, etc and I bet the problem will not persist.

share|improve this answer

A jquery-placeholder script was causing the undefined to show in the password field. I kept the script but went into general-template.php in wp-includes and added holder="" to the code for the wp_login_form function password field.

share|improve this answer
Congratulations! You’ve successfully created a fork of WordPress which you cannot update anymore. Why didn’t you use a filter? – toscho Feb 1 '12 at 8:20

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.