Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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)

Thanks.

share|improve this question
    
The label for the password field read undefined? Or the password defaults to undefined? –  m0r7if3r 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? –  m0r7if3r 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? –  m0r7if3r Jan 30 '12 at 21:30

2 Answers 2

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

 
discard

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.