Opened 14 years ago
Closed 14 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)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
#16456