[wp-trac] [WordPress Trac] #45495: Extra P tags added to custom dynamic blocks

WordPress Trac noreply at wordpress.org
Mon Feb 11 05:00:27 UTC 2019


#45495: Extra P tags added to custom dynamic blocks
----------------------------------------+---------------------
 Reporter:  mattheu                     |       Owner:  (none)
     Type:  defect (bug)                |      Status:  new
 Priority:  normal                      |   Milestone:  5.2
Component:  Editor                      |     Version:
 Severity:  normal                      |  Resolution:
 Keywords:  has-patch needs-unit-tests  |     Focuses:
----------------------------------------+---------------------

Comment (by aldavigdis):

 @pento The strange thing here is that this should have been covered in
 {{{test_blocks_arent_autopeed}}}, which was done during
 https://core.trac.wordpress.org/ticket/45290.

 It's almost as if the {{{wpautop}}} is applied/disabled as expected in the
 test suite, but somehow it doesn't when rendering a block on a live site.

 I have the latest nightly in my dev environment and I can show that
 {{{wpautop}}} is in fact being run on {{{the_content}}} if it includes
 blocks unless my patch is applied. However, I don't seem to be able to
 proof this with a unit test.

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


More information about the wp-trac mailing list