Opened 8 years ago
Closed 8 years ago
#34004 closed defect (bug) (fixed)
Changing Static Front Page setting in Customizer doesn't update Page listing hints
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 4.4 | Priority: | normal |
Severity: | normal | Version: | 3.4 |
Component: | Customize | Keywords: | has-patch |
Focuses: | Cc: |
Description
When you change the 'Front page displays' setting on the Settings > Reading page, to create a static front page, you will see a ‘hint’ next to the relevant page when you view your list of pages (Pages > All Pages). i.e. If I’ve set the Front-Page and Posts page, it will actually show this with either ‘- Posts Page’ or ‘- Front Page’ next to the title for the relevant Pages.
Additionally, as you’d expect, if you change this setting back using the Settings > Reading page, the hints will disappear.
However, if in the Customizer, you alter these settings from a static front page, back to displaying posts on the front page, these hints are not removed.
I've tested this without any plugins enabled and also using multiple themes, including default themes such as Twenty Twelve and Twenty Fifteen.
Steps to reproduce:
- Visit Settings > Reading page
- Select 'A static page (select below)' radio button
- Select a page from 'Front page:' dropdown
- Select a page from 'Posts page:' dropdown
- Click Save Changes button to save your changes
- Visit Pages > All Pages and verify hints are displaying next to the relevant pages you selected above
- Visit Appearance > Customize > Static Front Page
- Select 'Your latest posts' radio button
- Click Save & Publish button to save your changes
- Visit Pages > All Pages and verify hints are still displaying
When on the reading page, if you change the
show_on_front
setting, it will also clear out thepage_on_front
andpage_for_posts
settings. In the Customizer, however, just changing theshow_on_front
will only effect that one option.So either changing the
show_on_front
setting in the Customizer should empty out thepage_on_front
andpage_for_posts
settings (which I think would be annoying if the user wants to toggle back), or we can just prevent those hints (post states) from being shown whenshow_on_front
is not “page” (which I prefer).See 34004.diff