-
Notifications
You must be signed in to change notification settings - Fork 227
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 #7239: 3.19 - User interface #7303
Closes #7239: 3.19 - User interface #7303
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 |
@Miraeld, thank you for this PR. |
@hanna-meda Thanks for your feedback, I've just pushed a fix. Note that Codacy will fail, that's normal, we are adding some front-end, and no tests are covering the front end. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All is looking good, @Miraeld.
testrail-report-703.pdf
Description
Fixes #7239
Display the newly added preload fonts to the media - fonts section of settings page.
Type of change
Detailed scenario
Refer to issue
Technical description
Documentation
This pull request introduces several changes to the font optimization settings in the WP Rocket plugin, adding a new auto preload fonts option and ensuring compatibility with legacy settings. The most important changes include adding the new option, updating the settings page, and ensuring the new option is enabled based on existing settings.
Font Optimization Settings:
auto_preload_fonts
checkbox option to thefont_optimization_section
inmedia_section()
to allow users to preload fonts automatically.host_fonts_locally
option to include a link with more information.Legacy Settings Compatibility:
maybe_enable_auto_preload_fonts()
method inSettings/Page.php
to enable the newauto_preload_fonts
option if the oldrocket_preload_fonts
option is not empty.maybe_enable_auto_preload_fonts()
method to thewp_rocket_upgrade
event inSettings/Subscriber.php
to ensure it runs during upgrades. [1] [2]Additional Changes:
add_option()
andsanitize_option_value()
methods inFonts/Admin/Settings.php
to include the newauto_preload_fonts
option.New dependencies
None
Risks
None
Mandatory Checklist
Code validation
Code style