When the `wp-block-library` stylesheet is not enqueued, there will be no associated inline style present. This inline style normally contains the placeholder CSS comment for the HTML Tag Processor to identify the token after which the late-printed styles should be inserted. However, when the `wp-block-library` stylesheet is not enqueued (such as in themes which do not use blocks), or else the inline style is not printed for whatever reason, this adds a fallback to insert the late-printed styles immediately before `</head>`. This ensures that late-printed styles will always get hoisted. Developed in https://github.com/WordPress/wordpress-develop/pull/10417 Follow-up to [61008]. Props westonruter, peterwilsoncc, Soean. See #64099, #43258. Fixes #64150. Built from https://develop.svn.wordpress.org/trunk@61076 git-svn-id: http://core.svn.wordpress.org/trunk@60412 1a063a9b-81f0-0310-95a4-ce76da25c4cd
147 KiB
147 KiB