-
Notifications
You must be signed in to change notification settings - Fork 383
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AMP custom elements are corrupted by force_balance_tags() #2156
Comments
I've seen this issue come up before. It is an issue with In short, the function is erroneously converting Notice the space being added. The AMP plugin then parses the document and comes across invalid Can you confirm you are applying this function to If so, as a quick fix, you can remove the filter. Otherwise, you could adapt the code linked to in the gist linked to in the support forum topic above. Ultimately, WordPress core needs to fix it's implementation of |
Thanks for the reply. I'm not using this filter. Actually I am not using any filter in the_content but I am using a Multisite environment and I known Wordpress filter some security stuff in the_content when using MU. |
@andremacola I checked and it doesn't seem that |
@westonruter You were right, some other developer did a very old commit using |
I'm going to leave this open for now to track getting a WordPress core fix for this, since it has come up twice now. |
I filed a core ticket with the fix: https://core.trac.wordpress.org/ticket/47014 |
When pasting a vídeo url on Gutenberg. The embed code do not validate with the Amp plugin. I am doing something wrong? I did not made any customization to the default wp block.
The text was updated successfully, but these errors were encountered: