Aaron Jorbin
a457e3498e
Editor: Universalize functions for checking block editor status.
...
`use_block_editor_for_post_type` and `use_block_editor_for_post` can be very useful in more contexts than wp-admin, especially when a site is in transition. For example, you may want to do things on init that are different.
Neither function depends on other functions that are available only in wp-admin (other than use_block_editor_for_post() relying on use_block_editor_for_post_type() and an admin-referrer check that's historically gated by a query variable and now also gated by is_admin), therefore moving them to wp-includes seems both feasible and beneficial
Props ethitter, jorbin.
Fixes #51819 .
Built from https://develop.svn.wordpress.org/trunk@53559
git-svn-id: http://core.svn.wordpress.org/trunk@53148 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2022-06-23 18:48:13 +00:00
..
2022-04-28 16:39:11 +00:00
2022-06-01 18:14:10 +00:00
2022-04-04 18:26:06 +00:00
2021-09-09 13:48:56 +00:00
2021-09-09 13:59:56 +00:00
2022-04-11 11:50:01 +00:00
2022-06-01 18:14:10 +00:00
2022-06-01 18:14:10 +00:00
2022-04-14 15:15:12 +00:00
2022-03-22 16:25:03 +00:00
2022-03-26 15:28:08 +00:00
2021-09-09 13:59:56 +00:00
2022-04-11 11:42:04 +00:00
2021-08-29 01:33:58 +00:00
2022-05-20 17:38:14 +00:00
2022-05-20 17:38:14 +00:00
2022-05-20 17:38:14 +00:00
2022-05-20 17:38:14 +00:00
2021-09-09 13:03:55 +00:00
2021-09-09 12:39:59 +00:00
2022-01-15 08:44:03 +00:00
2021-09-09 13:48:56 +00:00
2022-05-20 17:38:14 +00:00
2022-03-19 20:31:12 +00:00
2022-01-20 09:19:07 +00:00
2022-05-20 17:38:14 +00:00
2022-03-29 13:21:08 +00:00
2021-12-07 12:20:02 +00:00
2021-12-07 12:20:02 +00:00
2021-12-07 12:20:02 +00:00
2022-02-27 15:02:04 +00:00
2022-03-30 10:45:06 +00:00
2021-11-30 17:18:01 +00:00
2021-09-07 19:24:53 +00:00
2022-06-14 15:07:10 +00:00
2022-05-19 15:54:15 +00:00
2021-12-07 12:20:02 +00:00
2021-09-10 14:49:00 +00:00
2022-06-14 14:43:12 +00:00
2022-05-02 13:07:14 +00:00
2022-03-22 19:59:04 +00:00
2022-05-19 15:54:15 +00:00
2022-03-10 19:22:01 +00:00
2022-04-11 11:42:04 +00:00
2021-11-24 11:41:03 +00:00
2022-06-16 23:10:10 +00:00
2022-03-22 16:25:03 +00:00
2022-05-05 16:29:08 +00:00
2022-04-11 14:21:09 +00:00
2022-04-13 16:14:10 +00:00
2022-03-17 22:21:07 +00:00
2022-03-18 12:44:04 +00:00
2021-09-09 13:59:56 +00:00
2022-04-11 11:50:01 +00:00
2022-06-14 14:43:12 +00:00
2021-10-19 23:09:00 +00:00
2022-05-10 16:45:08 +00:00
2022-04-20 08:13:10 +00:00
2021-12-07 12:20:02 +00:00
2022-06-01 18:14:10 +00:00
2022-06-02 15:05:13 +00:00
2022-06-21 11:16:17 +00:00
2022-06-21 11:18:17 +00:00
2022-04-14 15:15:12 +00:00
2022-04-15 10:52:11 +00:00
2022-06-01 18:14:10 +00:00
2022-04-17 14:44:07 +00:00
2022-04-17 17:57:09 +00:00
2022-05-20 17:38:14 +00:00
2022-04-18 10:33:09 +00:00
2022-04-19 15:59:10 +00:00
2021-11-02 17:37:57 +00:00
2021-11-30 17:18:01 +00:00
2022-03-15 15:58:02 +00:00
2022-06-22 14:55:11 +00:00
2022-06-23 18:48:13 +00:00
2022-06-01 18:14:10 +00:00
2021-12-07 12:20:02 +00:00
2022-04-06 04:35:00 +00:00
2022-06-16 23:39:08 +00:00
2022-05-07 17:16:13 +00:00
2022-03-28 13:17:05 +00:00
2022-06-01 18:14:10 +00:00
2022-01-27 21:15:03 +00:00
2022-05-23 17:02:16 +00:00
2022-04-04 18:26:06 +00:00
2022-04-20 10:46:09 +00:00
2022-06-02 15:05:13 +00:00
2021-12-13 10:21:07 +00:00