Opened 11 years ago
Closed 11 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_frontsetting, it will also clear out thepage_on_frontandpage_for_postssettings. In the Customizer, however, just changing theshow_on_frontwill only effect that one option.So either changing the
show_on_frontsetting in the Customizer should empty out thepage_on_frontandpage_for_postssettings (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_frontis not “page” (which I prefer).See 34004.diff