Opened 10 years ago
Closed 9 years ago
#32616 closed defect (bug) (fixed)
HTML in Gallery Captions Not Rending in Visual Editor
Reported by: | macmanx | Owned by: | azaozz |
---|---|---|---|
Milestone: | 4.4 | Priority: | normal |
Severity: | normal | Version: | 3.9 |
Component: | TinyMCE | Keywords: | has-patch needs-testing |
Focuses: | javascript | Cc: |
Description
When a caption including HTML is added to a gallery image, the HTML is not rendered in the Visual editor and instead displays as plain text. See attached screenshot.
This is in contraction to regular image captions containing HTML which do render in the Visual editor.
Issue reproduced in WordPress 4.2.2 and 4.3-alpha-32724 with no plugins and the Twenty Fifteen theme.
Attachments (3)
Change History (15)
#2
@
10 years ago
- Focuses javascript added
- Keywords needs-patch added
- Milestone changed from Awaiting Review to Future Release
- Version changed from trunk to 3.9
#4
@
9 years ago
- Keywords has-patch needs-testing added; needs-patch removed
Patch added to use the triple mustache to not HTML escape the caption
#5
@
9 years ago
- Summary changed from Gallery Captions Not Rending in Visual Editor to HTML in Gallery Captions Not Rending in Visual Editor
#6
@
9 years ago
It would be great to get this patch tested @iseulde, @ocean90 :) It still applies cleanly.
#8
@
9 years ago
Introduced in [27408].
I have a concern about unfiltered HTML, see comment:10:ticket:27574.
With 32616.patch, I was able to get a JS alert via the caption field. Single (non-gallery) image captions appear to handle this differently, could not trigger an alert there.
screenshot of issue