[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
Tue Nov 6 21:30:09 UTC 2018


#45290: The equivalent of `gutenberg_wpautop` from Gutenberg plugin is missing in
the 5.0 beta
--------------------------------------------------+---------------------
 Reporter:  nerrad                                |       Owner:  (none)
     Type:  defect (bug)                          |      Status:  new
 Priority:  high                                  |   Milestone:  5.0
Component:  Editor                                |     Version:  5.0
 Severity:  major                                 |  Resolution:
 Keywords:  dev-feedback has-patch needs-testing  |     Focuses:
--------------------------------------------------+---------------------

Comment (by mkaz):

 One side effect from bumping up the priority for the wpautop, which was
 moved from 8 to 6 in 4.1.1, the Syntaxhighlighter plugin which manages the
 [code] shortcode needs to hook in before autop and had priority 7.

 The result is `<br>` show in the code block for older posts, regardless of
 the content being edited or not in Gutenberg. The filter would get applied
 and process prior to autop to fix.

 It's an easy fix for the plugin, by moving its priority up, but possible
 it will effect others.

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


More information about the wp-trac mailing list