[wp-trac] [WordPress Trac] #45401: Dynamic blocs not working when added after a page break block.

WordPress Trac noreply at wordpress.org
Thu Nov 22 20:00:42 UTC 2018


#45401: Dynamic blocs not working when added after a page break block.
--------------------------+--------------------
 Reporter:  youknowriad   |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  5.0
Component:  General       |    Version:  5.0
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+--------------------
 Related Gutenberg Ticket
 https://github.com/WordPress/gutenberg/issues/12218

 Use this HTML in your post

 {{{
 <!-- wp:heading -->
 <h2>Test</h2>
 <!-- /wp:heading -->

 <!-- wp:nextpage -->
 <!--nextpage-->
 <!-- /wp:nextpage -->

 <!-- wp:quote -->
 <blockquote class="wp-block-
 quote"><p>TEST</p><cite>ETSTTSTT</cite></blockquote>
 <!-- /wp:quote -->

 <!-- wp:latest-posts /-->
 }}}


 And notice that the latest posts block is not showing up in the second
 page.

 The reason is simple, the string passed to `do_blocks` is a string
 starting with `<!-- /wp:nextpage -->` which means the content is not
 parsed properly by the gutenberg parser.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/45401>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list