spacedmonkey
6adb9be81f
Editor: Register core block styles in one place.
...
Register all core blocks in a new function called `register_core_block_style_handles`. This mirrors the function `wp_default_styles` where all core styles are registered in one place. This improves block registration performance, as it avoids expensive file lookups, like realpath in `register_block_style_handle`. The new function `register_core_block_style_handles` uses `glob` to get all css files in the blocks directory. This glob is cached in a transient to save lookups on subsequent requests. The function `register_block_style_handle` now checks to see if the style handle is already registered before trying to register it again.
Props mukesh27, westonruter, flixos90, joemcgill, spacedmonkey.
Fixes #58528 .
Built from https://develop.svn.wordpress.org/trunk@56044
git-svn-id: http://core.svn.wordpress.org/trunk@55556 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-06-26 21:17:22 +00:00
..
2023-03-09 00:05:24 +00:00
2023-03-09 00:05:24 +00:00
2023-03-09 00:05:24 +00:00
2023-03-09 00:05:24 +00:00
2023-03-09 00:05:24 +00:00
2023-03-09 00:05:24 +00:00
2023-03-09 00:05:24 +00:00
2023-03-09 00:05:24 +00:00
2023-03-09 00:05:24 +00:00
2022-09-20 15:43:29 +00:00
2023-03-09 00:05:24 +00:00
2023-03-01 12:05:03 +00:00
2023-03-09 00:05:24 +00:00
2023-03-01 12:05:03 +00:00
2023-03-01 12:05:03 +00:00
2023-03-01 12:05:03 +00:00
2023-03-09 00:05:24 +00:00
2023-03-09 00:05:24 +00:00
2023-03-09 00:05:24 +00:00
2023-03-01 12:05:03 +00:00
2023-03-09 00:05:24 +00:00
2023-03-01 12:05:03 +00:00
2023-03-09 00:05:24 +00:00
2023-03-09 00:05:24 +00:00
2023-03-09 00:05:24 +00:00
2023-03-09 00:05:24 +00:00
2023-03-09 00:05:24 +00:00
2023-03-09 00:05:24 +00:00
2023-03-09 00:05:24 +00:00
2023-03-09 00:05:24 +00:00
2023-03-01 12:05:03 +00:00
2023-03-09 00:05:24 +00:00
2023-03-09 00:05:24 +00:00
2023-03-09 00:05:24 +00:00
2023-03-09 00:05:24 +00:00
2021-06-15 08:52:30 +00:00
2023-03-09 00:05:24 +00:00
2023-02-07 07:04:52 +00:00
2023-03-01 12:05:03 +00:00
2023-03-09 00:05:24 +00:00
2022-04-12 15:12:47 +00:00
2023-03-09 00:05:24 +00:00
2023-03-09 00:05:24 +00:00
2023-03-09 00:05:24 +00:00
2023-03-09 00:05:24 +00:00
2023-03-09 00:05:24 +00:00
2023-03-09 00:05:24 +00:00
2023-02-07 07:04:52 +00:00
2023-03-09 00:05:24 +00:00
2022-04-12 15:12:47 +00:00
2023-03-09 00:05:24 +00:00
2023-03-01 12:05:03 +00:00
2023-03-01 12:05:03 +00:00
2023-03-09 00:05:24 +00:00
2023-03-01 12:05:03 +00:00
2023-03-09 00:05:24 +00:00
2023-03-09 00:05:24 +00:00
2023-03-09 00:05:24 +00:00
2023-03-09 00:05:24 +00:00
2023-03-09 00:05:24 +00:00
2023-03-09 00:05:24 +00:00
2023-03-09 00:05:24 +00:00
2023-03-09 00:05:24 +00:00
2023-03-09 00:05:24 +00:00
2023-03-09 00:05:24 +00:00
2023-03-01 12:05:03 +00:00
2023-03-09 00:05:24 +00:00
2023-03-01 12:05:03 +00:00
2023-03-09 00:05:24 +00:00
2023-03-01 12:05:03 +00:00
2023-03-09 00:05:24 +00:00
2023-03-09 00:05:24 +00:00
2023-03-09 00:05:24 +00:00
2023-03-09 00:05:24 +00:00
2023-03-09 00:05:24 +00:00
2023-03-09 00:05:24 +00:00
2023-03-09 00:05:24 +00:00
2023-03-09 00:05:24 +00:00
2023-03-09 00:05:24 +00:00
2023-03-09 00:05:24 +00:00
2023-03-09 00:05:24 +00:00
2023-03-09 00:05:24 +00:00
2023-03-09 00:05:24 +00:00
2023-03-09 00:05:24 +00:00
2023-03-09 00:05:24 +00:00
2023-03-09 00:05:24 +00:00
2023-03-01 12:05:03 +00:00
2023-03-09 00:05:24 +00:00
2023-03-09 00:05:24 +00:00
2023-03-09 00:05:24 +00:00
2021-11-09 02:17:17 +00:00
2023-02-07 07:04:52 +00:00
2023-02-07 07:04:52 +00:00
2023-02-07 07:04:52 +00:00
2023-03-01 12:20:17 +00:00
2023-02-07 07:04:52 +00:00
2023-02-07 07:04:52 +00:00
2023-02-07 07:04:52 +00:00
2023-02-07 07:04:52 +00:00
2023-02-07 07:04:52 +00:00
2023-02-07 07:04:52 +00:00
2023-02-07 07:04:52 +00:00
2023-05-09 14:13:25 +00:00
2022-04-12 15:12:47 +00:00
2022-04-12 15:12:47 +00:00
2022-04-12 15:12:47 +00:00
2023-02-07 07:04:52 +00:00
2022-09-20 15:43:29 +00:00
2023-02-07 07:04:52 +00:00
2023-02-07 07:16:17 +00:00
2022-09-20 15:43:29 +00:00
2023-02-07 13:00:09 +00:00
2023-02-07 07:04:52 +00:00
2023-02-07 07:04:52 +00:00
2022-09-20 15:43:29 +00:00
2023-06-26 21:17:22 +00:00
2022-04-12 15:12:47 +00:00
2023-02-07 07:04:52 +00:00
2022-10-18 13:56:02 +00:00
2021-11-08 14:29:21 +00:00
2023-03-14 15:45:47 +00:00
2023-03-07 15:31:49 +00:00
2023-03-07 15:31:49 +00:00
2023-02-07 07:04:52 +00:00
2021-11-09 02:17:17 +00:00
2022-04-12 15:12:47 +00:00
2023-02-07 07:04:52 +00:00
2023-02-07 07:04:52 +00:00
2023-02-07 07:04:52 +00:00
2023-02-07 07:04:52 +00:00
2023-02-07 07:04:52 +00:00
2023-02-07 07:04:52 +00:00
2023-02-07 07:04:52 +00:00
2023-02-07 07:04:52 +00:00
2023-02-07 07:04:52 +00:00
2023-02-07 07:04:52 +00:00
2023-02-07 07:04:52 +00:00
2023-02-07 07:04:52 +00:00
2022-04-12 15:12:47 +00:00
2021-11-08 14:29:21 +00:00
2022-04-12 15:12:47 +00:00
2023-02-07 07:04:52 +00:00
2022-09-20 15:43:29 +00:00
2021-05-19 15:09:27 +00:00
2023-02-07 13:00:09 +00:00
2023-02-07 07:04:52 +00:00
2023-02-07 07:04:52 +00:00
2023-02-07 07:04:52 +00:00
2023-02-07 07:04:52 +00:00
2020-06-26 13:33:47 +00:00
2022-04-12 15:12:47 +00:00
2021-06-22 10:00:50 +00:00
2023-02-07 07:04:52 +00:00
2023-02-07 07:04:52 +00:00
2023-02-07 07:04:52 +00:00
2023-05-20 03:58:47 +00:00
2023-02-07 07:04:52 +00:00
2022-10-18 13:56:02 +00:00