Make WordPress Core

Opened 9 years ago

Closed 9 years ago

Last modified 9 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:


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)

#1 @sivel
9 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.

#2 @Denis-de-Bernardy
9 years ago

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