[wp-trac] [WordPress Trac] #16746: post paginating <!--nextpage--> does not work

WordPress Trac wp-trac at lists.automattic.com
Fri Mar 4 12:01:32 UTC 2011


#16746: post paginating <!--nextpage--> does not work
--------------------------+-----------------------------
 Reporter:  hakre         |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:
 Severity:  normal        |   Keywords:
--------------------------+-----------------------------
 When <!--nextpage--> is placed at the very beginning of the post content
 (first page contains zero-length content) then pagination does not work at
 all.

 Example post content for reproduction:

 {{{
 <!--nextpage-->
 page2
 <!--nextpage-->
 page3
 }}}

 This will result in a single page, not in a three or two page setup.

 It's related to strpos returning 0 which is casted into false when if'ed.

 Related: #16745

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/16746>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list