Make WordPress Core

Opened 11 years ago

Closed 11 years ago

#34231 closed enhancement (wontfix)

Support for post types in is_archive()

Reported by: sebastian.pisula Owned by:
Priority: normal Milestone:
Component: Query Version:
Severity: normal Keywords:
Cc: Focuses:

Description

I think that great idea will be add support for param of post type in is_archive() function.

This is alias for is_post_type_archive()

Attachments (1)

34231.patch​ (1.2 KB ) - added by sebastian.pisula 11 years ago.

Download all attachments as: .zip

Change History (2)

#1 @helen
11 years ago

  • Milestone Awaiting Review
  • Resolution → wontfix
  • Status new → closed

is_archive() can be any number of kinds of archives, not just post type archives. This would be an extremely ambiguous argument - is it the name of a post type or a term or something else?

Note: See TracTickets for help on using tickets.