WordPress.org

Make WordPress Core

Opened 12 years ago

Closed 12 years ago

#5593 closed enhancement (fixed)

Change other conditional tags to accept arrays as arguments

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

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

Download all attachments as: .zip

Change History (3)

#1 @westi
12 years ago

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

#2 @ryan
12 years ago

  • Resolution set to fixed
  • Status changed from assigned to 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.