WordPress.org

Make WordPress Core

Opened 5 months ago

#46604 new defect (bug)

Twenty Seventeen: Front page panels allow pages of any status to be shown.

Reported by: brettshumaker Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Bundled Theme Keywords:
Focuses: Cc:

Description

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.

Attachments (3)

every-page-pubished.png (491.6 KB) - added by brettshumaker 5 months ago.
This shows the initial state of the customizer - all Front Panel pages are published.
customizer-after-altering-post-status.png (562.7 KB) - added by brettshumaker 5 months ago.
This shows the customizer view after altering the post_status of the chosen pages.
front-after-altering-post-status.png (365.9 KB) - added by brettshumaker 5 months ago.
This is the logged out, front end view after altering the post_status of the chosen pages.

Download all attachments as: .zip

Change History (3)

@brettshumaker
5 months ago

This shows the initial state of the customizer - all Front Panel pages are published.

@brettshumaker
5 months ago

This shows the customizer view after altering the post_status of the chosen pages.

@brettshumaker
5 months ago

This is the logged out, front end view after altering the post_status of the chosen pages.

Note: See TracTickets for help on using tickets.