Opened 14 years ago
Closed 14 years ago
#19934 closed defect (bug) (duplicate)
Remove wpautop from password protected form
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | Priority: | normal | |
| Severity: | normal | Version: | 3.3.1 |
| Component: | Template | Keywords: | needs-patch |
| Focuses: | Cc: |
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)
Note: See
TracTickets for help on using
tickets.
#16456