WordPress.org

Make WordPress Core

Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#9859 closed defect (bug) (worksforme)

Page on front option disappears when no pages are available

Reported by: markjaquith Owned by:
Milestone: Priority: normal
Severity: normal Version: 2.8
Component: Administration Keywords: page_on_front show_on_front
Focuses: Cc:

Description

Edge case, but if you have WP set to display a page on the front page, and you delete that page, and it was the last page, WP will maintain the option, but prevent you from changing it.

When deleting pages, we should check to see if the page was the page_on_front page, and if so, delete the page_on_front and show_on_front options.

Change History (2)

comment:1 sivel5 years ago

  • Resolution set to worksforme
  • Status changed from new to closed

Looking into the code, I have found that this functionality already exists. Testing also shows that this works as expected. If the page is listed as the front page the option is removed and the page for posts is reset also.

comment:2 Denis-de-Bernardy5 years ago

  • Milestone 2.9 deleted
Note: See TracTickets for help on using tickets.