Skip to content

Display error when a plugin is activated which tries to do something incompatible with AMP #842

@MackenzieHartung

Description

@MackenzieHartung

Acceptance Criteria

AC1: On activating a plugin on wp-admin/plugins.php, if the plugin does something that’s not compatible with AMP, display an error at the top of the page
AC2: The error message will display the following text:. “ is not compatible with AMP, and could result in content displaying improperly on your site.”

Tasks

  • Add a "reporting" flag whenever something is removed by the output buffer sanitizer and use that to build the "Bad Plugin" error.
  • Report other things than just node removal, including enqueued scripts and styles.
  • Report errors related to unknown sources.
  • Add method to disable AMP sanitization to be able to debug what is going on?
  • Improve initialization process for how validation is requested.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions