wordpress-develop/tests/phpunit/data/themedir1/block-theme-child
Jonny Harris a68650ef19 Editor: Introduce get_block_asset_url Utility Function.
This commit introduces a valuable utility function, get_block_asset_url, designed to simplify the retrieval of block asset URLs, such as those for CSS and JavaScript files. This utility eliminates redundancy in both register_block_script_handle and register_block_style_handle. Additionally, `get_block_asset_url` incorporates an early exit mechanism to optimize performance.

This update includes comprehensive unit tests, covering various scenarios, including asset registration from core (wp-includes), themes, child themes, plugins, and mu-plugins.

Props spacedmonkey, joemcgill, flixos90, gziolo.
Fixes #58525.

git-svn-id: https://develop.svn.wordpress.org/trunk@56683 602fd350-edb4-49c9-b593-d223f7449a82
2023-09-25 17:47:27 +00:00
..
blocks/example-block Editor: Introduce get_block_asset_url Utility Function. 2023-09-25 17:47:27 +00:00
styles Block editor: Update WP_Theme_JSON_Resolver and improve its performance. 2023-02-06 15:31:50 +00:00
templates Themes: Update the base folders for templates and template parts in block themes. 2021-11-25 10:57:19 +00:00
page-home.php Themes: Add block template resolution algorithm unit tests. 2021-11-25 09:20:03 +00:00
style.css Update theme.json classes for WordPress 5.9. 2021-11-08 19:18:39 +00:00
theme.json Update theme.json classes for WordPress 5.9. 2021-11-08 19:18:39 +00:00