Felix Arntz
2a57dd7f86
Editor: Avoid running certain logic around theme.json
parsing unnecessarily for classic themes.
...
Here's what it does:
* Do not load and parse `theme-i18n.json` schema if the theme does not have a `theme.json` file.
* Fix the variable caching layer around the theme's `theme.json` parsing so that a parent's theme `theme.json` is cached as well.
* Do not run a `WP_Query` for global styles for a user when the theme does not have a `theme.json`.
In a basic WordPress setup, this changeset improves `wp_head` execution time for classic themes by 10%, and overall response time for both block themes and classic themes by 4%. This may seem like a small win, but 4% reduced overall response time is actually quite a bit for one change, and it is worth mentioning that this is just one of several other little performance tweaks which are being worked on to improve performance of `theme.json` parsing further.
Props flixos90, manuilov, oandregal, peterwilsoncc, spacedmonkey.
Fixes #56945 .
Built from https://develop.svn.wordpress.org/trunk@54799
git-svn-id: http://core.svn.wordpress.org/trunk@54351 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-11-10 22:16:15 +00:00
..
2022-10-25 19:08:45 +00:00
2022-04-12 09:26:16 +00:00
2022-10-19 12:27:10 +00:00
2022-10-25 19:08:45 +00:00
2022-10-25 19:08:45 +00:00
2022-10-17 11:26:11 +00:00
2022-10-04 02:08:11 +00:00
2022-10-25 19:08:45 +00:00
2022-04-06 15:20:06 +00:00
2022-10-09 17:12:31 +00:00
2022-09-26 20:56:10 +00:00
2022-02-16 21:19:04 +00:00
2021-12-06 21:30:03 +00:00
2022-11-10 19:40:11 +00:00
2021-12-20 19:33:00 +00:00
2022-11-06 14:48:10 +00:00
2022-09-26 14:00:10 +00:00
2022-10-11 15:00:12 +00:00
2022-03-22 16:25:03 +00:00
2022-03-22 16:25:03 +00:00
2022-09-26 22:43:10 +00:00
2022-08-13 22:44:09 +00:00
2022-04-21 11:24:17 +00:00
2022-09-20 16:26:10 +00:00
2022-11-09 09:51:14 +00:00
2022-09-20 16:29:12 +00:00
2022-11-07 20:23:11 +00:00
2022-11-10 09:40:16 +00:00
2022-10-16 15:46:15 +00:00
2022-06-23 22:57:12 +00:00
2022-08-30 15:17:08 +00:00
2022-10-10 18:22:11 +00:00
2022-10-10 18:22:11 +00:00
2022-11-10 03:01:14 +00:00
2022-10-24 14:56:16 +00:00
2022-08-19 23:06:09 +00:00
2022-08-04 14:52:11 +00:00
2022-06-17 11:20:13 +00:00
2022-11-07 13:35:12 +00:00
2022-06-17 11:20:13 +00:00
2022-11-09 09:19:14 +00:00
2021-12-06 21:30:03 +00:00
2021-12-24 18:06:06 +00:00
2022-01-30 19:25:03 +00:00
2022-01-30 19:25:03 +00:00
2022-01-30 19:25:03 +00:00
2022-09-15 12:32:08 +00:00
2022-05-01 22:01:10 +00:00
2022-01-30 19:25:03 +00:00
2022-09-12 15:47:14 +00:00
2022-09-12 15:47:14 +00:00
2022-09-12 15:47:14 +00:00
2022-09-12 15:47:14 +00:00
2022-09-12 15:47:14 +00:00
2022-09-20 15:43:29 +00:00
2022-09-12 15:47:14 +00:00
2022-09-12 15:47:14 +00:00
2022-09-12 15:47:14 +00:00
2022-10-11 18:46:13 +00:00
2022-09-12 15:47:14 +00:00
2022-09-12 15:47:14 +00:00
2022-10-24 14:16:12 +00:00
2022-10-03 14:41:14 +00:00
2022-09-12 15:47:14 +00:00
2022-09-12 15:47:14 +00:00
2022-09-12 15:47:14 +00:00
2022-09-12 21:50:14 +00:00
2022-09-12 15:47:14 +00:00
2022-09-12 15:47:14 +00:00
2022-09-12 15:47:14 +00:00
2022-09-12 15:47:14 +00:00
2022-09-12 15:47:14 +00:00
2022-11-08 13:29:16 +00:00
2022-10-11 09:02:14 +00:00
2022-09-28 22:19:10 +00:00
2022-09-12 15:47:14 +00:00
2022-09-26 22:43:10 +00:00
2022-09-12 15:47:14 +00:00
2022-09-12 15:47:14 +00:00
2022-09-12 15:47:14 +00:00
2022-09-12 15:47:14 +00:00
2022-09-12 15:47:14 +00:00
2022-09-12 15:47:14 +00:00
2022-09-12 15:47:14 +00:00
2022-09-12 15:47:14 +00:00
2022-09-12 15:47:14 +00:00
2022-10-21 21:12:14 +00:00
2022-09-12 15:47:14 +00:00
2021-12-06 21:30:03 +00:00
2022-09-12 15:47:14 +00:00
2022-09-12 15:47:14 +00:00
2022-10-21 21:12:14 +00:00
2022-09-19 22:53:10 +00:00
2022-09-19 22:53:10 +00:00
2022-10-07 19:17:12 +00:00
2022-09-12 15:47:14 +00:00
2022-09-26 22:10:16 +00:00
2022-09-12 15:47:14 +00:00
2022-09-12 15:47:14 +00:00
2022-09-12 15:47:14 +00:00
2022-09-12 15:47:14 +00:00
2022-10-18 18:16:16 +00:00
2022-09-20 14:26:10 +00:00
2022-09-26 22:10:16 +00:00
2022-09-12 15:47:14 +00:00
2022-11-05 22:03:16 +00:00
2022-09-12 15:47:14 +00:00
2022-09-26 22:10:16 +00:00
2022-09-12 15:47:14 +00:00
2022-11-09 10:27:12 +00:00
2022-10-04 03:59:13 +00:00
2022-09-12 15:47:14 +00:00
2022-09-12 15:47:14 +00:00
2022-09-12 15:47:14 +00:00
2022-09-12 15:47:14 +00:00
2022-10-04 23:01:13 +00:00
2022-09-12 15:47:14 +00:00
2022-10-24 14:56:16 +00:00
2022-09-28 22:19:10 +00:00
2022-09-12 15:47:14 +00:00
2022-09-12 15:47:14 +00:00
2022-09-12 15:47:14 +00:00
2022-10-18 18:16:16 +00:00
2022-09-12 15:47:14 +00:00
2022-09-28 14:59:10 +00:00
2022-09-12 15:47:14 +00:00
2022-09-12 15:47:14 +00:00
2022-09-12 15:47:14 +00:00
2022-09-12 15:47:14 +00:00
2022-09-12 15:47:14 +00:00
2022-09-12 15:47:14 +00:00
2022-10-24 10:02:16 +00:00
2022-10-11 15:00:12 +00:00
2022-11-10 22:16:15 +00:00
2022-09-12 15:47:14 +00:00
2022-11-10 22:16:15 +00:00
2022-09-20 01:36:09 +00:00
2022-11-08 17:31:13 +00:00
2022-09-12 15:47:14 +00:00
2022-09-12 15:47:14 +00:00
2022-09-12 15:47:14 +00:00
2022-09-12 15:47:14 +00:00
2022-09-12 15:47:14 +00:00
2022-10-11 01:46:14 +00:00
2022-10-18 16:11:16 +00:00
2022-10-31 20:40:10 +00:00
2022-09-20 14:17:12 +00:00
2022-09-20 14:17:12 +00:00
2022-09-20 14:17:12 +00:00
2022-10-11 15:45:11 +00:00
2022-10-17 11:31:12 +00:00
2022-05-08 00:29:14 +00:00
2022-10-12 11:53:15 +00:00
2022-06-17 11:20:13 +00:00
2022-09-20 01:36:09 +00:00
2022-10-25 12:19:18 +00:00
2022-10-21 21:12:14 +00:00
2022-06-17 11:20:13 +00:00
2022-08-19 22:06:09 +00:00
2022-04-29 19:17:11 +00:00
2021-11-29 09:52:00 +00:00
2022-06-20 21:46:16 +00:00
2022-10-21 21:12:14 +00:00
2022-11-10 19:40:11 +00:00
2022-10-11 09:02:14 +00:00
2022-10-11 09:02:14 +00:00
2022-10-11 09:02:14 +00:00
2022-10-27 15:41:12 +00:00
2022-09-14 13:08:14 +00:00
2022-08-11 14:11:08 +00:00
2022-10-26 14:22:16 +00:00
2022-10-24 10:02:16 +00:00
2022-09-13 18:05:09 +00:00
2022-11-10 19:40:11 +00:00
2022-10-17 11:26:11 +00:00
2022-10-12 13:23:14 +00:00
2022-10-13 17:24:15 +00:00
2022-10-18 18:16:16 +00:00
2022-07-14 13:35:13 +00:00
2022-09-20 02:51:09 +00:00
2022-09-21 19:48:13 +00:00
2022-10-18 18:16:16 +00:00
2022-05-13 12:21:13 +00:00
2022-10-18 18:16:16 +00:00
2022-08-26 01:03:14 +00:00
2022-10-11 14:04:13 +00:00
2022-06-15 13:37:10 +00:00
2022-10-18 18:16:16 +00:00
2022-10-21 21:51:14 +00:00
2022-08-01 11:15:14 +00:00
2022-09-21 20:24:12 +00:00
2022-03-15 15:22:05 +00:00
2022-11-10 00:46:16 +00:00
2022-06-21 13:34:13 +00:00
2022-10-21 21:12:14 +00:00
2022-09-28 14:47:12 +00:00
2022-10-01 03:25:10 +00:00
2022-04-06 15:33:03 +00:00
2022-03-22 16:25:03 +00:00
2022-11-10 11:33:14 +00:00
2022-09-26 22:43:10 +00:00
2022-09-14 12:48:16 +00:00
2022-11-10 17:16:12 +00:00
2021-12-10 20:30:05 +00:00
2022-11-02 19:52:18 +00:00
2022-09-21 11:43:13 +00:00
2022-05-02 13:13:08 +00:00
2022-09-14 18:44:09 +00:00
2022-10-07 20:48:12 +00:00
2022-09-22 11:13:14 +00:00
2022-11-01 10:42:17 +00:00
2022-04-27 13:47:11 +00:00
2022-11-10 22:16:15 +00:00
2022-10-17 12:41:11 +00:00
2022-07-21 22:45:11 +00:00