[wp-trac] [WordPress Trac] #26864: Consolidate handling of object, autio and video tags in wpautop
WordPress Trac
noreply at wordpress.org
Fri Jan 17 19:17:03 UTC 2014
#26864: Consolidate handling of object, autio and video tags in wpautop
-------------------------+-----------------
Reporter: azaozz | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 3.9
Component: Formatting | Version:
Severity: normal | Keywords:
-------------------------+-----------------
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.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/26864>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list