[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 21:57:21 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        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+---------------------

Comment (by azaozz):

 How about:
 {{{
 $content = ltrim( $content, '<!-- /wp:nextpage -->' );
 $content = rtrim( $content, '<!-- wp:nextpage -->' );
 }}}
 to catch cases when there are more than two pages :)

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


More information about the wp-trac mailing list