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-06-25 22:57:26 +00:00
2023-03-21 15:37:21 +00:00
2023-06-26 21:17:22 +00:00
2023-06-25 15:20:22 +00:00
2023-04-11 16:30:22 +00:00
2023-06-22 14:36:26 +00:00
2020-02-06 06:33:11 +00:00
2023-05-24 10:15:20 +00:00
2022-05-07 16:21:18 +00:00
2021-06-01 11:30:57 +00:00
2020-02-06 06:33:11 +00:00
2023-06-14 14:08:18 +00:00
2022-03-02 15:00:11 +00:00
2023-06-14 14:08:18 +00:00
2022-01-27 22:17:00 +00:00
2022-08-04 14:52:11 +00:00
2023-06-22 14:36:26 +00:00
2023-03-09 16:30:19 +00:00
2020-02-06 06:33:11 +00:00
2020-02-06 06:33:11 +00:00
2023-06-14 14:08:18 +00:00
2023-06-19 18:27:27 +00:00
2023-02-23 11:06:19 +00:00
2023-01-18 11:40:10 +00:00
2023-02-07 17:10:21 +00:00
2023-05-11 15:05:22 +00:00
2022-09-20 02:51:09 +00:00
2023-02-23 10:38:21 +00:00
2023-06-22 14:36:26 +00:00
2023-02-23 10:38:21 +00:00
2023-02-23 10:38:21 +00:00
2023-06-14 14:08:18 +00:00
2023-03-09 16:30:19 +00:00
2023-02-23 10:38:21 +00:00
2023-06-14 14:08:18 +00:00
2022-11-20 14:10:15 +00:00
2023-06-25 18:44:23 +00:00
2021-07-22 13:53:00 +00:00
2023-02-23 10:38:21 +00:00
2023-06-14 14:08:18 +00:00
2021-07-27 19:01:59 +00:00
2021-12-12 14:52:02 +00:00
2023-06-23 12:17:24 +00:00
2023-02-23 10:38:21 +00:00
2021-03-07 12:32:09 +00:00
2023-06-19 23:20:21 +00:00
2023-06-22 14:36:26 +00:00
2023-06-05 21:05:22 +00:00
2020-02-06 06:33:11 +00:00
2020-02-06 06:33:11 +00:00
2022-11-14 21:57:10 +00:00
2020-02-06 06:33:11 +00:00
2020-02-06 06:33:11 +00:00
2020-02-06 06:33:11 +00:00
2020-02-06 06:33:11 +00:00
2020-02-06 06:33:11 +00:00
2020-02-06 06:33:11 +00:00
2023-06-14 14:08:18 +00:00
2023-03-15 09:05:22 +00:00
2023-02-23 10:38:21 +00:00
2023-02-23 10:38:21 +00:00
2023-06-24 05:30:21 +00:00
2019-08-16 00:39:55 +00:00
2023-02-23 10:38:21 +00:00
2023-05-02 15:45:22 +00:00
2023-04-27 13:14:23 +00:00
2023-02-23 10:38:21 +00:00
2023-06-22 00:32:21 +00:00
2023-06-22 14:36:26 +00:00
2023-06-24 09:52:19 +00:00
2023-02-23 10:38:21 +00:00
2023-02-23 11:06:19 +00:00
2020-05-16 18:42:12 +00:00
2023-06-22 14:36:26 +00:00
2020-02-06 06:33:11 +00:00
2023-04-09 11:57:22 +00:00
2023-03-09 16:30:19 +00:00
2020-02-06 06:33:11 +00:00
2023-02-23 10:38:21 +00:00
2023-06-23 23:09:29 +00:00
2023-06-26 04:48:24 +00:00
2021-11-01 22:36:59 +00:00
2023-06-14 14:08:18 +00:00
2022-06-01 18:14:10 +00:00
2023-06-24 09:52:19 +00:00
2023-02-23 10:38:21 +00:00
2023-02-23 11:06:19 +00:00
2023-02-23 10:38:21 +00:00
2023-06-23 15:03:22 +00:00
2023-04-09 11:57:22 +00:00
2020-02-06 06:33:11 +00:00
2023-04-04 22:38:22 +00:00
2023-06-22 14:36:26 +00:00
2023-06-23 23:09:29 +00:00
2023-06-23 23:09:29 +00:00
2023-06-04 02:35:19 +00:00
2022-04-07 13:40:04 +00:00
2023-06-22 14:57:24 +00:00
2022-03-22 19:59:04 +00:00