Closed wpsmith closed 3 years ago
Thanks @wpsmith! Updating this to null does prevent the reported issue.
Before this is merged, we'll need to ignore the phpcs missing version message.
Resource version not set in call to wp_enqueue_style(). This means new versions of the style will not always be loaded due to browser caching. (WordPress.WP.EnqueuedResourceParameters.MissingVersion)
Closed in favor of #374
If a user changes
fonts-url
to something likehttps://fonts.googleapis.com/css2?family=Alex+Brush&family=Open+Sans:wght@400;700;800&display=swap
, WordPress'sadd_query_arg
breaks the URL withwp_parse_str
andurlencode_deep
as Google cannot handle the encodings.How to test
fonts-url
inconfig/appearance
tohttps://fonts.googleapis.com/css2?family=Alex+Brush&family=Open+Sans:wght@400;700;800&display=swap
link
tag forid="genesis-sample-fonts-css"
.Documentation
PR includes documentation.
Suggested changelog entry
Notes
See WP Core Tickets: https://core.trac.wordpress.org/ticket/50106 and https://core.trac.wordpress.org/ticket/49742.