Make WordPress Core

Opened 12 years ago

Closed 12 years ago

#19934 closed defect (bug) (duplicate)

Remove wpautop from password protected form

Reported by: coreyw's profile coreyw Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.3.1
Component: Template Keywords: needs-patch
Focuses: Cc:


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: }

Change History (1)

#1 @SergeyBiryukov
12 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.