Skip to content

WordPress TV embed includes custom script #3508

@schlessera

Description

@schlessera

Bug Description

The WordPress.TV embed block includes a custom script that causes a validation error in AMP. The script is not needed for regular operation of the embed block.

Expected Behaviour

The plugin should strip the custom script during sanitization.

Steps to reproduce

  1. Add an embed block in the block editor with the following URL:
https://wordpress.tv/2019/10/08/the-history-of-wordpress-in-four-minutes/
  1. Publish the post and visit it on its AMP URL.
  2. See in the admin bar that the post failed validation for including a custom script.

Screenshots

Image 2019-10-15 at 2 53 08 PM

Image 2019-10-15 at 2 53 47 PM


Do not alter or remove anything below. The following sections will be managed by moderators only.

Acceptance criteria

  • Adding a WordPress TV embed should not cause any validation error to be reported.

Implementation brief

QA testing instructions

  • See “Steps to reproduce” above.

Demo

Changelog entry

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions