Make WordPress Core

Opened 19 years ago

Closed 19 years ago

#5593 closed enhancement (fixed)

Change other conditional tags to accept arrays as arguments

Reported by: fitztrev Owned by: westi
Priority: normal Milestone: 2.5
Component: Template Version:
Severity: normal Keywords: has-patch
Cc: Focuses:

Description

azaozz in #5430 did the hard part. I just made it so that is_single(), is_category(), is_tag(), and is_author() can each accept arrays also.

Just like #5430, these are also backwards compatible.

Attachments (1)

conditional_tag_array.diff​ (2.2 KB ) - added by fitztrev 19 years ago.

Download all attachments as: .zip

Change History (3)

#1 @westi
19 years ago

  • Owner changed from anonymous to westi
  • Status new → assigned

#2 @ryan
19 years ago

  • Resolution → fixed
  • Status assigned → closed

(In [6823]) Allow is_single(), is_category(), and is_tag() to accept arrays. Props fitzrev. fixes #5593

Note: See TracTickets for help on using tickets.