﻿id,summary,reporter,owner,description,type,status,priority,milestone,component,version,severity,resolution,keywords,cc
20354,Strange behaviour of 'the_password_form' hook,egorpromo,,"I try add filter function to get_the_password_form() function for the sake of improving HTML. I use 'the_password_form' hook:

{{{
add_filter('the_password_form', 'improve_password_form');
function improve_password_form($output)
{
	return '	<div class=""password-form"">'.$output.'</div><!-- .password-form -->';
}
}}}

When I look at HTML-code I see tags <p> and </p> that added in different places:

{{{
<div class=""password-form"">
<form action=""http://mysite.com/wordpress/wp-pass.php"" method=""post"">
……
<input type=""submit"" name=""Submit"" value=""Submit"" /></p></form>
</p></div>
<p><!-- .password-form --></p>
}}}

I don’t understand how <p> and </p> can appear about “<!-- .password-form -->” string. It must not be there. When I delete my filter all is correct and form have view like in wp-includes/post-template.php.

I think it is bug. I can’t use 'the_password_form' filter hook to modify form.",defect (bug),closed,normal,,Template,3.3.1,normal,duplicate,,
