Ticket #5593 (closed enhancement: fixed)

Opened 4 years ago

Last modified 4 years ago

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:

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

conditional_tag_array.diff Download (2.2 KB) - added by fitztrev 4 years ago.

Change History

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

comment:2   ryan4 years ago

  • Status changed from assigned to closed
  • Resolution set to fixed

(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.