Skip to content

Instantly share code, notes, and snippets.

@westonruter
Last active December 19, 2025 20:32
Show Gist options
  • Select an option

  • Save westonruter/30db2216eef07600cb1762ee8be67f18 to your computer and use it in GitHub Desktop.

Select an option

Save westonruter/30db2216eef07600cb1762ee8be67f18 to your computer and use it in GitHub Desktop.
Test plugin to ensure that a stylesheet enqueued in the footer will get printed and moved to the head in WordPress 6.9. See https://wordpress.org/support/topic/wordpress-6-9-broke-site-layout-crewbloom/page/3/#post-18758001
{
"$schema": "https://playground.wordpress.net/blueprint-schema.json",
"meta": {
"title": "Try enqueueing a stylesheet at wp_footer",
"author": "westonruter",
"categories": [ "plugins" ]
},
"landingPage": "/",
"preferredVersions": {
"php": "8.3",
"wp": "6.9"
},
"steps": [
{
"step": "installTheme",
"themeData": {
"resource": "wordpress.org/themes",
"slug": "twentytwentyone"
},
"options": {
"activate": true
}
},
{
"step": "installPlugin",
"pluginData": {
"resource": "url",
"url": "https://gist.github.com/westonruter/30db2216eef07600cb1762ee8be67f18/archive/HEAD.zip"
},
"options": {
"activate": true,
"targetFolderName": "enqueue-styles-at-wp-footer"
}
}
]
}
@westonruter
Copy link
Author

The installPlugin step might be better as:

		{
			"step": "installPlugin",
			"pluginData": {
				"resource": "zip",
				"inner": {
					"resource": "git:directory",
					"url": "https://gist.github.com/westonruter/30db2216eef07600cb1762ee8be67f18",
					"ref": "main"
				}
			},
			"options": {
				"activate": true,
				"targetFolderName": "enqueue-styles-at-wp-footer"
			}
		}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment