Opened 7 years ago
Closed 7 years ago
#42395 closed defect (bug) (fixed)
Customize: Starter content does not play nicely with drafted changes
Reported by: | dlh | Owned by: | westonruter |
---|---|---|---|
Milestone: | 4.9 | Priority: | normal |
Severity: | normal | Version: | 4.9 |
Component: | Customize | Keywords: | has-patch commit dev-reviewed |
Focuses: | Cc: |
Description
Open the customizer on a "fresh site" running twenty seventeen, and save your changes as a draft. each time you load the draft in the customizer after that, the starter content will be re-imported as new drafts. when the changeset is published, each copy of the imported starter content is published.
Attachments (3)
Change History (14)
#1
@
7 years ago
- Keywords has-patch added
@dlh I have an initial patch which seems to fix the issue. See 42395.0.wip.diff. But it's not pretty. I'd appreciate your insights.
I'm not satisfied with the patch I have, as it is hacky and exposes some underlying problems with how we implemented settings for nav menus and nav menu items. In particular, we're including dynamic “generated” properties like original_title
and type_label
in the changeset value. These should be omitted and only dynamically added when the via the filter wp_setup_nav_menu_item
, for example.
#2
@
7 years ago
Could we assume that a non auto-draft
changeset no longer needs starter content imported, as sketched in 42395.diff?
#3
@
7 years ago
@dlh That's a great point. I was retaining the importing of starter content because I was thinking of the case where a user switches to a different theme that has starter content. But if you've saved a draft then you wouldn't be able to switch themes anymore anyway.
This ticket was mentioned in Slack in #core-customize by westonruter. View the logs.
7 years ago
#5
@
7 years ago
- Keywords dev-feedback added
- Owner set to westonruter
- Status changed from new to accepted
This ticket was mentioned in Slack in #core-committers by westonruter. View the logs.
7 years ago
This ticket was mentioned in Slack in #core by jeffpaul. View the logs.
7 years ago
#10
@
7 years ago
Was able to reproduce and 42395.3.diff looks like a fine fix. 👍
https://github.com/xwp/wordpress-develop/pull/298