Closes #7281: Preload Fonts - Current feature deprecation #7317
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Fixes #7281
Removes the old UI of Preload Fonts
Type of change
Detailed scenario
Browse the preload settings, you won't see the old preload fonts in it.
Technical description
Documentation
This pull request includes significant changes to the
inc/Engine/Admin/Settings/Page.php
andinc/Engine/Admin/Settings/Settings.php
files, primarily focusing on the removal of the font preloading feature from the settings page and related sanitization functions. Additionally, corresponding test cases have been removed from the test files.Removal of font preloading feature:
inc/Engine/Admin/Settings/Page.php
: Removed the 'Preload Fonts' section and associated fields from thepreload_section
method. [1] [2] [3]inc/Engine/Admin/Settings/Settings.php
: Removed thepreload_fonts
option from thesanitize_callback
method and thesanitize_fonts
private method. [1] [2]Removal of related test cases:
tests/Integration/inc/Engine/Admin/Settings/Settings/sanitizeCallback.php
: Removed thetestShouldSanitizeFontPreloadEntries
test case.tests/Unit/inc/Engine/Admin/Settings/Settings/sanitizeCallback.php
: Removed thetestShouldSanitizeFontPreloadEntries
test case.New dependencies
None
Risks
None
Mandatory Checklist
Code validation
Code style