[wp-trac] [WordPress Trac] #42612: Single post navigation bugs when adding posts in Starter Content

WordPress Trac noreply at wordpress.org
Fri Nov 17 23:13:46 UTC 2017


#42612: Single post navigation bugs when adding posts in Starter Content
--------------------------+-----------------------------
 Reporter:  bduclos       |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Customize     |    Version:  trunk
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 To reproduce the issue:
 - Inside a fresh install of Twentyseventeen, open the functions.php file.
 Line 132, modify the $starter_content posts array to add 2 posts:
 {{{#!php
 <?php
 'posts' => array(
         'home',
         'about' => array(
                 'thumbnail' => '{{image-sandwich}}',
         ),
         'contact' => array(
                 'thumbnail' => '{{image-espresso}}',
         ),
         'blog' => array(
                 'thumbnail' => '{{image-coffee}}',
         ),
         'homepage-section' => array(
                 'thumbnail' => '{{image-espresso}}',
         ),

         'the-new-office' => array(
                 'post_type'     => 'post',
                 'post_title'    => 'The new office',
                 'thumbnail'     => '{{image-espresso}}',
                 'post_content'  => 'Maecenas tristique lobortis sem sit
 amet consectetur. Nullam pharetra ex ex, a aliquet ligula pellentesque a.
 Aenean et justo volutpat, malesuada purus a, sagittis eros.',
         ),

         'join-the-team' => array(
                 'post_type'     => 'post',
                 'post_title'    => 'Join the team',
                 'thumbnail'     => '{{image-coffee}}',
                 'post_content'  => 'Maecenas tristique lobortis sem sit
 amet consectetur. Nullam pharetra ex ex, a aliquet ligula pellentesque a.
 Aenean et justo volutpat, malesuada purus a, sagittis eros.',
         ),
 ),
 }}}

 - Open the Customizer to load the starter content and click on the Publish
 button.
 - Visit the first post titled "The new office". The single navigation
 indicates "Hello World" as the previous post while it should be "Join the
 team".

 I think the bug comes from the fact that the 2 posts have the same exact
 date. Is there a way to specify the post date when configuring the starter
 content?

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


More information about the wp-trac mailing list