#29219 closed defect (bug) (fixed)
A figure tag gets an injected ghost p tag
Reported by: | grayghostvisuals | Owned by: | wonderboymusic |
---|---|---|---|
Milestone: | 4.2 | Priority: | normal |
Severity: | normal | Version: | 3.9.2 |
Component: | Posts, Post Types | Keywords: | has-patch |
Focuses: | Cc: |
Description
It seems in the WordPress 3.9.2 release anything wrapped in a figure tag gets a ghost p and br tag injected. Seems a similar ticket was closed, but I'm not seeing a status on the release of this fix.
Author Input
<figure> <pre><code>code sample</code></pre> <figcaption>a small note about the figure above</figcaption> </figure>
WordPress Output:
<figure> <pre><code>code sample</code></pre> <p></p> <figcaption>a small note about the figure above</figcaption> </figure> <br>
Attachments (1)
Change History (6)
This ticket was mentioned in Slack in #core by wonderboymusic. View the logs.
10 years ago
#3
@
10 years ago
29219.diff looks good. <figcaption>
is pretty similar to <li>
. It's not a "typical" block tag, can only be inside <figure>
and can contain "flow content".
Note: See
TracTickets for help on using
tickets.
Thanks for the report, grayghostvisuals - I'll have someone confirm 29219.diff as the proper fix.