You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Webfonts] Deprecations for data structural changes filling server logs #47123
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 of trigger_error(), similar to how functions use Core's _deprecated_function().
Step-by-step reproduction instructions
Register web fonts in the old way by passing an array of fonts.
Run the site.
Open the server logs.
Notice the list of deprecations for:
PHP Deprecated: A deprecated web fonts array structure passed to wp_register_webfonts(). Variations must be grouped and keyed by their font family. in /plugins/gutenberg/14.9.1/lib/experimental/class-wp-webfonts.php on line 160
Activity