[wp-trac] [WordPress Trac] #40146: Starter content can be silently published with other themes

WordPress Trac noreply at wordpress.org
Sat Apr 22 17:58:04 UTC 2017


#40146: Starter content can be silently published with other themes
-------------------------------------------+-----------------------------
 Reporter:  dlh                            |       Owner:
     Type:  defect (bug)                   |      Status:  new
 Priority:  normal                         |   Milestone:  Future Release
Component:  Customize                      |     Version:  4.7
 Severity:  normal                         |  Resolution:
 Keywords:  reporter-feedback needs-patch  |     Focuses:
-------------------------------------------+-----------------------------
Changes (by westonruter):

 * keywords:   => reporter-feedback needs-patch
 * milestone:  Awaiting Review => Future Release


Comment:

 @dlh good catch. What if the `starter_content` flag for a given setting in
 the changeset were to be changed from `true` to be the slug of the theme
 for which it is starter content? Then when switching to preview another
 theme, the reading of the values from the changeset could skip any that
 have a `starter_content` that doesn't match the current theme. If the user
 switches back to the initial theme again, the starter content from that
 theme could then be re-applied if the `starter_content` only if the flag
 is still present, as when the flag is removed this is an indication that
 the user modified the value and it is no longer starter content.

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


More information about the wp-trac mailing list