Opened 11 years ago
Closed 11 years ago
#26864 closed task (blessed) (fixed)
Consolidate handling of object, audio and video tags in wpautop
Reported by: | azaozz | Owned by: | |
---|---|---|---|
Milestone: | 3.9 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Formatting | Keywords: | |
Focuses: | Cc: |
Description
There is some code in both JS and PHP flavors of wpautop() that strips line breaks from inside <object>
tags to prevent <br>
and <p>
. Something similar is needed for <audio>
and <video>
.
The general idea is to prevent <param>
, <embed>
, <track>
, <source>
, etc. from being wrapped in <p>
without treating them as "block" elements.
Attachments (3)
Change History (14)
#1
@
11 years ago
Related: #26628. 26864.patch contains the wpautop() parts from 26628.5.diff.
#3
@
11 years ago
In 26864.2.patch:
- Prevent <p> and <br> around <source> and <track> in wpautop.
- Add a few unit tests.
#4
@
11 years ago
In 26864.3.patch:
- Run the wpautop() regex only when <source> or <track> tags are present.
- Test for running wpautop() from wp_richedit_pre().
Note: See
TracTickets for help on using
tickets.
Patch by wonderboymusic