-
Notifications
You must be signed in to change notification settings - Fork 223
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
Closes #6879 Add meta generator #7034
Conversation
Coverage summary from CodacySee diff coverage on Codacy
Coverage variation details
Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: Diff coverage details
Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: See your quality gate settings Change summary preferencesCodacy stopped sending the deprecated coverage status on June 5th, 2024. Learn more Footnotes
|
Also I noticed that manual_preload was not added to the meta or not? |
the preload value is not on the list of things we need to log in the meta |
@Tabrisrp Thanks for the PR. Please find the exploratory test notes below:
|
Updated the Acceptance Criteria based on @Mai-Saad findings:
Bugfixes:
@remyperona I included everything in this comment, Mai's findings above. |
When CDN is enabled, the CDN URL is automatically added to the DNS prefetch values using the filter, so that's expected that |
@remyperona Couldn't we do a check there, for example:
|
We can, I was explaining why it was happening that way.
I can't see any preloaded font on this link. When testing locally with a font added in the preload fonts field, it works correctly. What is the configuration tested on that page? |
Coverage summary from CodacySee diff coverage on Codacy
Coverage variation details
Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: Diff coverage details
Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: See your quality gate settings Change summary preferencesCodacy stopped sending the deprecated coverage status on June 5th, 2024. Learn more Footnotes
|
PR is updated, all points taken care of, waiting for feedback related to the preload fonts. |
Working as expected, failed test have separate GH (already on trunk) |
Description
Fixes #6879
Add meta tag generator to HTML when optimized
Type of change
Detailed scenario
In optimized HTML, a new meta tag is added:
<meta name="generator" content="WP Rocket" data-wpr-features="" />
The
data-wpr-features
contains the list of features enabled.Using
rocket_disable_meta_generator
filter set totrue
prevents the meta tag from being added.Using
rocket_display_meta_generator_content
set tofalse
removes thecontent="WP Rocket"
part.Technical description
Documentation
Explain how this code works. Diagrams & drawings are welcome.
Mandatory Checklist
Code validation
Code style