Bernhard Reiter
c5f7803d64
Block Hooks: Add function to encapsulate wrapping in ad-hoc parent.
...
Introduce a new function, `apply_block_hooks_to_content_from_post_object`, to colocate the logic used to temporarily wrap content in a parent block (with `ignoredHookedBlocks` information fetched from post meta) alongside the call to `apply_block_hooks_to_content`. Fetching that information from post meta is required for all block types that get their content from post objects, i.e. Post Content, Synced Pattern, and Navigation blocks.
Additionally, the newly introduced function contains logic to ensure that insertion of a hooked block into the `first_child` or `last_child` position of a given Post Content block works, even if that block only contains "classic" markup (i.e. no blocks).
Props bernhard-reiter, gziolo, mamaduka.
Fixes #61074 , #62716 .
Built from https://develop.svn.wordpress.org/trunk@59838
git-svn-id: http://core.svn.wordpress.org/trunk@59180 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2025-02-19 14:52:22 +00:00
..
2025-02-07 15:46:48 +00:00
2024-09-13 05:37:16 +00:00
2024-12-21 17:23:24 +00:00
2025-02-07 16:06:20 +00:00
2025-01-30 18:53:27 +00:00
2025-02-17 22:58:23 +00:00
2025-02-08 11:44:24 +00:00
2024-10-20 23:25:16 +00:00
2025-02-11 20:04:23 +00:00
2024-12-02 08:10:17 +00:00
2024-09-18 18:04:14 +00:00
2025-02-08 15:53:17 +00:00
2024-09-17 20:58:15 +00:00
2024-12-03 15:22:18 +00:00
2025-02-10 22:23:23 +00:00
2024-09-30 23:27:19 +00:00
2024-11-26 21:17:25 +00:00
2024-07-18 13:48:15 +00:00
2024-11-20 21:29:22 +00:00
2024-09-27 18:19:17 +00:00
2025-01-23 23:54:23 +00:00
2024-11-19 22:18:21 +00:00
2024-09-18 21:20:15 +00:00
2024-06-12 12:44:13 +00:00
2025-02-07 15:46:48 +00:00
2024-11-29 22:46:21 +00:00
2025-02-13 20:31:28 +00:00
2024-11-22 10:57:19 +00:00
2025-02-19 14:52:22 +00:00
2024-09-18 22:37:15 +00:00
2024-08-22 23:47:15 +00:00
2024-10-15 14:13:19 +00:00
2025-01-24 23:28:23 +00:00
2024-09-30 22:50:19 +00:00
2025-01-22 19:48:25 +00:00
2024-09-17 21:08:16 +00:00
2024-10-25 20:26:20 +00:00
2024-09-30 22:50:19 +00:00
2025-01-21 21:26:23 +00:00
2024-07-18 00:52:17 +00:00
2025-02-17 11:24:21 +00:00
2024-09-23 12:35:15 +00:00
2024-09-03 16:33:15 +00:00
2025-01-29 19:41:23 +00:00
2024-09-20 01:55:35 +00:00
2024-09-27 09:20:18 +00:00
2025-02-04 08:42:25 +00:00
2024-09-26 12:47:16 +00:00
2024-09-20 02:07:12 +00:00
2025-01-30 21:19:25 +00:00
2025-02-14 18:38:21 +00:00
2024-06-21 17:26:14 +00:00
2025-02-11 13:40:30 +00:00
2025-02-08 12:00:19 +00:00
2025-02-08 16:00:19 +00:00
2025-02-14 20:34:21 +00:00
2025-01-22 19:48:25 +00:00
2024-10-13 19:09:12 +00:00
2025-01-22 19:48:25 +00:00
2025-01-21 22:38:23 +00:00
2024-11-27 11:40:18 +00:00
2024-08-25 23:48:13 +00:00
2024-06-14 12:18:11 +00:00
2025-01-23 23:54:23 +00:00
2024-09-27 19:28:14 +00:00
2024-10-22 10:16:16 +00:00
2024-09-30 22:50:19 +00:00
2024-09-30 22:50:19 +00:00
2025-01-22 19:48:25 +00:00
2024-11-29 23:48:15 +00:00
2025-01-07 22:35:23 +00:00
2024-11-29 23:48:15 +00:00
2025-01-08 12:54:18 +00:00
2024-12-05 21:37:20 +00:00
2024-06-21 17:26:14 +00:00
2024-09-13 22:12:15 +00:00
2024-09-19 12:12:16 +00:00
2025-01-11 13:44:25 +00:00
2024-09-03 18:19:14 +00:00
2025-01-08 12:54:18 +00:00
2025-02-09 11:09:21 +00:00
2025-02-12 18:11:25 +00:00
2025-02-10 10:51:25 +00:00
2025-02-17 11:24:21 +00:00
2024-11-02 15:01:19 +00:00
2024-10-19 23:54:18 +00:00
2024-09-03 18:19:14 +00:00
2024-12-11 15:20:18 +00:00
2024-08-10 23:00:14 +00:00
2025-02-11 11:14:21 +00:00
2024-09-30 22:50:19 +00:00
2025-01-22 19:48:25 +00:00
2024-09-11 12:08:19 +00:00
2025-02-18 22:32:22 +00:00
2024-08-10 23:00:14 +00:00
2025-02-08 11:44:24 +00:00
2024-10-30 22:34:19 +00:00
2025-01-22 19:48:25 +00:00
2024-11-20 02:50:24 +00:00
2024-06-04 11:55:14 +00:00
2024-11-04 02:34:16 +00:00
2024-06-06 08:02:16 +00:00
2025-02-12 03:40:23 +00:00
2024-10-07 22:28:15 +00:00
2024-07-19 23:44:16 +00:00
2025-02-18 22:32:22 +00:00
2024-12-19 10:24:23 +00:00
2025-02-17 11:24:21 +00:00
2025-02-17 11:24:21 +00:00
2024-07-26 07:56:13 +00:00
2024-11-02 15:01:19 +00:00
2025-02-08 16:00:19 +00:00
2025-01-29 18:12:25 +00:00
2025-02-11 11:14:21 +00:00
2024-12-08 23:43:21 +00:00
2025-02-16 18:35:24 +00:00
2025-02-11 11:14:21 +00:00
2025-02-14 19:37:24 +00:00
2024-09-30 23:58:16 +00:00
2025-02-19 14:52:22 +00:00
2025-01-22 19:48:25 +00:00
2025-02-17 17:49:20 +00:00
2025-01-24 13:32:21 +00:00
2025-01-22 19:48:25 +00:00
2024-11-11 17:50:17 +00:00
2024-10-23 22:39:17 +00:00
2025-02-05 23:53:25 +00:00
2025-02-17 15:32:22 +00:00
2025-02-18 08:04:23 +00:00
2025-02-14 18:38:21 +00:00
2024-10-27 19:05:18 +00:00
2024-12-16 14:08:24 +00:00
2025-01-21 22:59:18 +00:00
2025-01-28 09:46:29 +00:00
2025-01-24 23:00:22 +00:00
2025-02-11 11:14:21 +00:00
2025-02-17 22:58:23 +00:00
2025-01-22 19:48:25 +00:00
2025-01-17 00:12:26 +00:00
2025-01-22 19:48:25 +00:00
2024-06-13 20:50:14 +00:00
2025-01-16 16:18:24 +00:00
2025-02-03 19:52:24 +00:00
2025-01-22 19:48:25 +00:00
2025-01-17 00:12:26 +00:00
2025-01-22 19:48:25 +00:00
2024-08-05 19:00:19 +00:00
2025-02-08 15:11:20 +00:00
2025-02-03 19:52:24 +00:00
2025-02-17 11:24:21 +00:00
2025-02-04 00:32:23 +00:00
2024-12-20 23:35:23 +00:00
2025-02-08 11:44:24 +00:00
2024-11-25 10:10:17 +00:00
2025-01-27 23:07:23 +00:00
2024-09-18 19:08:11 +00:00
2024-09-18 21:40:12 +00:00
2025-02-14 18:38:21 +00:00
2024-10-13 18:49:16 +00:00
2025-02-18 22:32:22 +00:00
2025-02-08 11:44:24 +00:00
2025-01-08 12:36:23 +00:00
2025-02-17 17:49:20 +00:00
2024-06-12 06:11:13 +00:00
2025-02-17 17:49:20 +00:00
2025-01-22 19:48:25 +00:00
2025-02-17 11:24:21 +00:00
2025-01-22 19:48:25 +00:00
2025-02-19 14:52:22 +00:00
2025-01-24 21:20:23 +00:00
2025-01-22 19:48:25 +00:00