Ticket #6749 (new enhancement)

Opened 3 months ago

in_category needs to be able to take more than one category...

Reported by: Otto42 Assigned to: anonymous
Priority: normal Milestone: 2.6
Component: Template Version: 2.5
Severity: normal Keywords: needs-testing 2nd-opinion has-patch
Cc:

Description

Reference: http://wordpress.org/support/topic/169575

When I first replied, I thought in_category(array(7,8,9,10,11)) would work, since a lot of the 2.5 template functions were enhanced to support multiple checking like this. Imagine my surprise when looking through the code that in_category apparently got missed.

Patch attached. Not sure if it works properly though, it needs testing and feedback.

Attachments

in_category.diff (1.1 kB) - added by Otto42 on 04/16/08 15:45:39.
First attempt at allowing in_category to support arrays of inputs

Change History

04/16/08 15:45:39 changed by Otto42

  • attachment in_category.diff added.

First attempt at allowing in_category to support arrays of inputs