-
Notifications
You must be signed in to change notification settings - Fork 382
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
Discovery to ensure all relevant WordPress actions/filters are AMP compatible #850
Comments
Key actions called during render of a template
Filters to aid in making the above actions compliant
The above filters can be used to solve xwp/ampnews#7 |
Is wp_resource_hints something we need to block? |
@westonruter I think it would be safe. That particularly aids in rendering in a browser, which is not necessary in AMP. |
@westonruter I think I got this all listed now and is ready to be reviewed. |
Aside from removing the |
@DavidCramer Would you take your findings and then open a PR to incorporate them into https://github.com/Automattic/amp-wp/blob/develop/includes/class-amp-theme-support.php ? The existing code is removing actions, but perhaps some of the filters you discovered would be preferred. Note that Then you can look specifically at comments in #797 and #862, and the unique filters and actions that occur there which will need to be hooked into. |
@westonruter Will do. I spoke briefly to @ThierryA on this yesterday. will sync with him again and move forward. Thanks! |
@DavidCramer Here's the info from @amedina re: Resource Hints:
|
@westonruter nice one! |
Acceptance Criteria
AC1: Conduct a Discovery to ensure all relevant WordPress actions/filters are AMP compatible
AC2: Create an issue/issues as an outcome of the Discovery.Tasks
wp_head
,wp_footer
, primarily what Core uses to output code in template, in particular the printing of scripts and stylesheets,wp_print_head_scripts
.The text was updated successfully, but these errors were encountered: