• Resolved emmanuelad

    (@emmanuelad)


    I would like to know if there is a way to remove the AMP validation that show up every time I publish or update a post on the site.

    It popups in the screen with a message like “There is content which fails AMP validation. Nevertheless, the invalid markup has been automatically removed.”

    I want to remove that validation in wp-admin. Is is possible?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Weston Ruter

    (@westonruter)

    Can you share the rationale for hiding the warnings? What is the use case? If you confirm the invalid markup as “Removed” then the warnings will go away.

    In any case, this is something we’re working on for the next major release for users who don’t want/need the developer tools: https://github.com/ampproject/amp-wp/issues/2673

    Thread Starter emmanuelad

    (@emmanuelad)

    We really don’t need an internal validador as we have external ones.

    The validator makes the wp-admin slow and adds unnecessary data on:

    edit.php?post_type=amp_validated_url
    and
    edit-tags.php?taxonomy=amp_validation_error&post_type=amp_validated_url

    Can we remove that completely with a custom function?

    Thanks

    Plugin Author Weston Ruter

    (@westonruter)

    The internal validator is important as it alerts you to when invalid markup is being removed. If someone inserts a block into the content which adds invalid markup to the page, then it will get removed on the AMP version. If the user is not told of this, the page may be broken and the user needs to know.

    Nevertheless, different user roles need access to different information. Some users don’t need to be exposed this information, so we are looking into ways to allow users to opt-out of the Dev Tools.

    We are also working on making the validation process reduce the perceived slowness here: https://github.com/ampproject/amp-wp/issues/2069

    In that issue you can find a temporary plugin which suppresses validation from happening: https://gist.github.com/westonruter/31ac0e056b8b1278c98f8a9f548fcc1a

    But this functionality will be made part of the plugin in the future.

    Plugin Author Weston Ruter

    (@westonruter)

    Here’s the PR that introduces the Dev Tools opt-out: https://github.com/ampproject/amp-wp/pull/4955

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Is there a way to remove the AMP internal validation?’ is closed to new replies.