Make WordPress Core

Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#37472 closed defect (bug) (worksforme)

Static page settings when front page is either not selected or deleted

Reported by: thinkupthemes's profile thinkupthemes Owned by:
Milestone: Priority: normal
Severity: normal Version: 4.5.3
Component: Posts, Post Types Keywords:
Focuses: Cc:

Description

The function is_front_page() returns false on the websites homepage if the following scenarios:

  1. A user assigns a static homepage, however later (for whatever reason) deletes the page from the pages section. Any code dependent on is_front_page() will no longer display on the homepage.
  1. A user selects the option "A static page" under Settings -> Reading, however doesn't assign a front page.

With regards to point 2 above, it may be helpful to notify the user that if they are choosing to use the static page setting then a front page should be assigned.

Change History (4)

#1 @SergeyBiryukov
8 years ago

  • Component changed from General to Posts, Post Types

Related: #16379, #23669, #25456, #28763, #35758.

#2 @grapplerulrich
8 years ago

I think this may be fixed as I could not replicate the issue. is_front_page() returned true regardless.

#3 @thinkupthemes
8 years ago

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

Having retested with the latest WP version, this issue is no longer present. Closing ticket as issue is fixed.

#4 @netweb
8 years ago

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