[wp-trac] [WordPress Trac] #46604: Twenty Seventeen: Front page panels allow pages of any status to be shown.
WordPress Trac
noreply at wordpress.org
Fri Mar 22 11:55:51 UTC 2019
#46604: Twenty Seventeen: Front page panels allow pages of any status to be shown.
---------------------------+-----------------------------
Reporter: brettshumaker | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Bundled Theme | Version:
Severity: normal | Keywords:
Focuses: |
---------------------------+-----------------------------
I noticed that if you have a published page set to a `Front Page Section X
Content` and that page is then set to `private`, `draft`, `pending`, or
`trash` at some point in the future, the content still appears on the
homepage. And if the page is deleted permanently, an error is shown and
the content of the "Homepage" is shown again.
When going back into the Customizer > Theme Options, pages that do not
have the status `publish` no longer show up in the select box. This makes
it unclear to the user what has happened.
Choosing `— Select —` and publishing the Customizer changes removes the
page(s), but I think that's a suboptimal experience.
It's easy enough to check the `post_status` of the page before displaying
the panel, but some thought will need to go into how to handle that
situation in the Customizer.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/46604>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list