WordPress.org

Making WordPress.org

Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#1559 closed defect (invalid)

Reading Settings fallback option when none is selected at Front page displays

Reported by: Cybr Owned by:
Milestone: Priority: normal
Component: General Keywords: close
Cc:

Description

Hi,

I found a bug that makes the home page think it's a page. (I didn't look at the WP_Query variables)

Here are the steps to replicate the issue:

  1. Go to /wp-admin/options-reading.php
  2. Delete the selected option at "Front page displays" through Developer Tools/Web Inspector.
  3. Save settings.

Now no setting is selected.

The home page is a Posts Page but WP_Query doesn't recognize it as one, nor as a front page at all.

This causes all kinds of issues when plugins/themes rely on is_front_page().

Thanks!

Change History (3)

#1 @Cybr
3 years ago

I see this is posted in meta (oops..), could someone move it to core? Thanks!

#2 @ocean90
3 years ago

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

@Cybr Please create a new ticket on core.trac.wordpress.org.

Note: See TracTickets for help on using tickets.