Make WordPress Core

Opened 10 years ago

Closed 10 years ago

#34231 closed enhancement (wontfix)

Support for post types in is_archive()

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

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 10 years ago.

Download all attachments as: .zip

Change History (2)

#1 @helen
10 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to wontfix
  • Status changed from new to 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.