Skip to content

Using custom HTML in video embed code doesn't work #2893

@lkraav

Description

@lkraav

https://github.com/Automattic/sensei/blob/version/2.4.0/includes/class-sensei-course.php#L3074 is broken.

Original issue #1613

Original fix #1631

Re-broken by adding wp_kses() at https://github.com/Automattic/sensei/pull/2296/files#diff-c0922c04ec6aa809fbd289ed7aabc9d7R3158 in #2296

Currently, Sensei()->settings->get( 'sensei_video_embed_html_sanitization_disable' ) is meaningless, because final wp_kses() call will not allow much custom HTML to pass.

EDIT same for lessons:

https://github.com/Automattic/sensei/blob/version/2.4.0/includes/class-sensei-frontend.php#L1020

UPDATE:
Work to be done for this issue can be found in this comment.

Metadata

Metadata

Assignees

No one assigned

    Labels

    CoursesLegacyLegacy functionality that has been replaced by blocksLessons[Pri] LowCosmetic issue, low impact, easy workaround[Type] Bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions