WordPress.org

Make WordPress Core

Opened 10 years ago

Closed 6 years ago

Last modified 5 years ago

#10158 closed enhancement (wontfix)

Deprecate is_home() and is_single(), in favor of is_blog() and is_post()

Reported by: Denis-de-Bernardy Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Query Keywords: dev-feedback
Focuses: template Cc:

Description

Thoughts?

Change History (8)

#2 @aaroncampbell
10 years ago

Just thought I'd add my vote for replacing is_home with is_blog. I personally think that is_single is more descriptive than is_post.

#3 @westi
10 years ago

  • Milestone changed from 2.9 to Future Release

No patch.

Not sure about this.

Moving to Future.

#4 @solarissmoke
8 years ago

  • Keywords dev-feedback added

#6 @grantnorwood
7 years ago

Regardless of the name of the is_home() function, I am proposing adding an additional conditional tag called is_blog_page() to return true if any of the blog-related pages are currently being viewed. The name of that function could change to match any changes to the name or implementation of is_home().

I've submitted a patch with ticket #21620.

#7 @nacin
6 years ago

  • Component changed from Themes to Query
  • Focuses template added
  • Milestone Future Release deleted
  • Resolution set to wontfix
  • Status changed from new to closed

#8 @SergeyBiryukov
5 years ago

#29711 was marked as a duplicate.

Note: See TracTickets for help on using tickets.