[wp-trac] [WordPress Trac] #38541: Allow starter content to apply in a new theme when switching from another theme containing changes

WordPress Trac noreply at wordpress.org
Fri Oct 28 04:33:35 UTC 2016


#38541: Allow starter content to apply in a new theme when switching from another
theme containing changes
--------------------------+------------------
 Reporter:  westonruter   |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  4.7
Component:  Customize     |     Version:
 Severity:  normal        |  Resolution:
 Keywords:  needs-patch   |     Focuses:
--------------------------+------------------
Description changed by westonruter:

Old description:

> See #38114. At the moment, starter content is only applied to the
> customized state if if there is no changeset ost existing for the current
> UUID. However, if I have a fresh site and I preview Twenty Seventeen and
> then, without activating, I do a theme switch to another theme that has
> starter content, I should see that theme's starter content merged on top
> of the previous starter content since the site is still fresh. A
> complication here is with the `auto-draft` post/page. The existence of
> the changeset provided a locking mechanism to prevent these posts from
> being created repeatedly in a given session. What needs to be done,
> however, is to ensure that they only get created once for a given theme's
> imported starter content.

New description:

 See #38114. At the moment, starter content is only applied to the
 customized state if if there is no changeset post existing for the current
 UUID. However, if I have a fresh site and I preview Twenty Seventeen and
 then, without activating, I do a theme switch to another theme that has
 starter content, I should see that theme's starter content merged on top
 of the previous starter content since the site is still fresh. A
 complication here is with the `auto-draft` post/page. The existence of the
 changeset provided a locking mechanism to prevent these posts from being
 created repeatedly in a given session. What needs to be done, however, is
 to ensure that they only get created once for a given theme's imported
 starter content.

--

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


More information about the wp-trac mailing list