[wp-trac] [WordPress Trac] #45290: The equivalent of `gutenberg_wpautop` from Gutenberg plugin is missing in the 5.0 beta

WordPress Trac noreply at wordpress.org
Sun Dec 16 02:22:48 UTC 2018


#45290: The equivalent of `gutenberg_wpautop` from Gutenberg plugin is missing in
the 5.0 beta
------------------------------------------------+---------------------
 Reporter:  nerrad                              |       Owner:  pento
     Type:  defect (bug)                        |      Status:  closed
 Priority:  high                                |   Milestone:  5.0
Component:  Editor                              |     Version:  5.0
 Severity:  major                               |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests fixed-5.0  |     Focuses:
------------------------------------------------+---------------------
Changes (by jeremyfelt):

 * status:  reopened => closed
 * resolution:   => fixed


Comment:

 In [changeset:"44226" 44226]:
 {{{
 #!CommitTicketReference repository="" revision="44226"
 Formatting: Ensure `wpautop()` isn't run on content generated from blocks.

 As `do_blocks()` is run before `wpautop()` in the_content filter, we can
 remove in a Just In Time fashion, before that filter is run.

 After `wpautop()`s original priority has passed, we can re-add it in a
 Just Too Late fashion, to ensure it's available if `the_content` filter is
 run multiple times on a page load.

 Merges [43879] and [43881] from the 5.0 branch to trunk.

 Props pento, nerrad.
 Fixes #45290.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/45290#comment:25>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list