Make WordPress Core

Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#17550 closed defect (bug) (invalid)

if (is_home() || is_front_page()) not working correctly

Reported by: webvitaly's profile webvitaly Owned by: webvitalygmailcom's profile webvitaly@…
Milestone: Priority: normal
Severity: normal Version: 3.1.2
Component: General Keywords:
Focuses: Cc:

Description

I have "About" page - which is chosen as front page;
and "News" page - which is chosen as posts page;
I have such code:

if (is_home() || is_front_page()){
	echo '=output=';
}

The string '=output=' prints on "About" and "News" page. But "News" page is not homepage and not front page. I think this is the bug.

Change History (3)

#1 @webvitaly
14 years ago

  • Cc webvitaly added

#2 @jorbin
14 years ago

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

#3 @ocean90
14 years ago

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