[Webfonts] Deprecations for data structural changes filling server logs #47123
Labels
[Priority] High
Used to indicate top priority items that need quick attention
[Type] Bug
An existing feature does not function as intended
Milestone
Description
Data structural deprecations are filling server logs on production sites. This can be problematic for hosting companies.
This change proposes to only throw the deprecations when
WP_Debug
is on. By doing so, developers testing changes will see the deprecations in their logs, but production sites will not.How?
Use Core's
_deprecated_argument()
instead oftrigger_error()
, similar to how functions use Core's_deprecated_function()
.Step-by-step reproduction instructions
Old way of registering fonts:
Screenshots, screen recording, code snippet
No response
Environment info
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: