[wp-trac] [WordPress Trac] #39254: When in Customizer Preview, starter content posts are not displayed in the loop

WordPress Trac noreply at wordpress.org
Thu May 11 08:55:35 UTC 2017


#39254: When in Customizer Preview, starter content posts are not displayed in the
loop
-------------------------------------+-------------------------------------
 Reporter:  tiagonoronha             |       Owner:  westonruter
     Type:  defect (bug)             |      Status:  accepted
 Priority:  normal                   |   Milestone:  4.8
Component:  Customize                |     Version:  4.7
 Severity:  normal                   |  Resolution:
 Keywords:  needs-unit-tests has-    |     Focuses:  administration,
  patch needs-testing reporter-      |  template
  feedback                           |
-------------------------------------+-------------------------------------

Comment (by FlorianBrinkmann):

 @westonruter here is the complete starter content part:
 https://gist.github.com/FlorianBrinkmann/4356ffbb8badf9604cdfbb88f09ef2df
 The entry for the post looks like that (I tried `post_name` instead
 `post_title` but this does not seem to work):

 {{{#!php
 'snowy-landscape' => [
         'post_type'  => 'post',
         'post_title' => 'Snowy Landscape',
 ],
 }}}

 I think I found the issue. The problem only appears if I use the
 customizer without a `&changeset_uuid=` in the URL (for example if I
 switched the theme via »Design« › »Themes« and not in the customizer). If
 the changeset exists, I do not get the duplicates.

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


More information about the wp-trac mailing list