WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #45290, comment 5


Ignore:
Timestamp:
11/06/2018 07:54:52 PM (20 months ago)
Author:
nerrad
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #45290, comment 5

    initial v1  
    88}}}
    99
    10 Howwever `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.
     10However, `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.
    1111
    1212The 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.