[wp-trac] [WordPress Trac] #19934: Remove wpautop from password protected form

WordPress Trac wp-trac at lists.automattic.com
Tue Jan 31 00:29:14 UTC 2012


#19934: Remove wpautop from password protected form
--------------------------+-----------------------------
 Reporter:  coreyw        |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Template      |    Version:  3.3.1
 Severity:  normal        |   Keywords:  needs-patch
--------------------------+-----------------------------
 If you have a custom form using the `the_password_form` filter, it tries
 to use `wpautop` on the code and is very annoying.

 The fix seems like a simple one, just add this after line 192 in /wp-
 includes/post-template.php:

 {{{
 191: if ( post_password_required($post) ) {
 192: $output = get_the_password_form();
 193: remove_filter('the_content', 'wpautop');
 194: return $output;
 195: }
 }}}

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/19934>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list