Ticket #4558 (closed enhancement: fixed)

Opened 1 year ago

Last modified 6 months ago

Allow category names in in_category()

Reported by: robmil Assigned to: robmil
Priority: normal Milestone: 2.5
Component: Administration Version: 2.3
Severity: normal Keywords: has-patch
Cc:

Description

Currently, in_category() only accepts the ID of a category, whereas is_category() accepts IDs, slugs and names. I think it's useful to be able to check if a post is in a given category based on its name as well as its ID, personally.

Attachments

4558.diff (0.5 kB) - added by robmil on 06/28/07 22:20:58.

Change History

06/28/07 22:20:58 changed by robmil

  • attachment 4558.diff added.

09/13/07 21:14:48 changed by ryan

  • milestone changed from 2.3 to 2.4.

02/25/08 22:18:41 changed by westi

  • status changed from new to closed.
  • resolution set to fixed.

(In [7030]) Support category names in in_category(). Fixes #4558 props robmil.