Changes between Initial Version and Version 1 of Ticket #45290, comment 5
- Timestamp:
- 11/06/2018 07:54:52 PM (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #45290, comment 5
initial v1 8 8 }}} 9 9 10 How wever`wpautop` is hooked into `the_content` on priority 10, and `do_blocks` is hooked in on priority 9. So that means the blocks have been parsed and the block serialized comments removed before hitting `wpautop`. Thus the `has_blocks` check here is never going to be true.10 However, `wpautop` is hooked into `the_content` on priority 10, and `do_blocks` is hooked in on priority 9. So that means the blocks have been parsed and the block serialized comments removed before hitting `wpautop`. Thus the `has_blocks` check here is never going to be true. 11 11 12 12 The implementation in core differs from what was in the gutenberg plugin because `wpautop` was re-registered running at priority 6 ''before'' the blocks were parsed from content.