Opened 13 years ago
Closed 13 years ago
#26864 closed task (blessed) (fixed)
Consolidate handling of object, audio and video tags in wpautop
| Reported by: | azaozz | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.9 |
| Component: | Formatting | Version: | |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
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
@
13 years ago
Related: #26628. 26864.patch contains the wpautop() parts from 26628.5.diff.
#3
@
13 years ago
In 26864.2.patch:
- Prevent <p> and <br> around <source> and <track> in wpautop.
- Add a few unit tests.
#4
@
13 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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Patch by wonderboymusic