#29826 closed defect (bug) (fixed)
subtitles added to media are stripped for anyone without unfiltered_html capability
Reported by: | jwenerd | Owned by: | wonderboymusic |
---|---|---|---|
Milestone: | 4.1 | Priority: | normal |
Severity: | normal | Version: | 4.0 |
Component: | Media | Keywords: | commit |
Focuses: | Cc: |
Description
If you are an author (or an editor or administrator on multisite) you are able to insert a video, add a subtitle track which inserts the track element within the video shortcode. Then when saving the post the track is removed due to it not being in the list of allowed post tags.
Attachments (2)
Change History (9)
#1
@
10 years ago
- Component changed from General to Media
- Milestone changed from Awaiting Review to 4.1
#2
follow-up:
↓ 4
@
10 years ago
- Keywords dev-feedback added
should we allow <audio>
and <video>
in the list as well? <track>
is a sub-element of them, so probably? someone with knowledge of this KSES file weigh in?
#3
@
10 years ago
- Summary changed from subtitles added to media are striped for anyone without unfiltered_html capability to subtitles added to media are stripped for anyone without unfiltered_html capability
#4
in reply to:
↑ 2
@
10 years ago
Replying to wonderboymusic:
should we allow
<audio>
and<video>
in the list as well?<track>
is a sub-element of them, so probably? someone with knowledge of this KSES file weigh in?
That makes sense to me, we need to try and keep the file consistent by adding support for tags in there groupings rather than individual tags alone.
#5
@
10 years ago
- Keywords commit added; dev-feedback removed
@wonderboymusic the patch looks good (although a little bit of me dies when I see autoplay=true ;))
Patch that adds track and permissible attributes to allowed tags