Make WordPress Core

Opened 15 years ago

Closed 15 years ago

#19934 closed defect (bug) (duplicate)

Remove wpautop from password protected form

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

Description

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
15 years ago

  • Milestone Awaiting Review
  • Resolution → duplicate
  • Status new → closed
Note: See TracTickets for help on using tickets.