[wp-trac] [WordPress Trac] #16718: Deprecate in_category in favor of has_category

WordPress Trac wp-trac at lists.automattic.com
Tue Mar 1 20:08:41 UTC 2011


#16718: Deprecate in_category in favor of has_category
-------------------------------------+------------------------------
 Reporter:  Otto42                   |       Owner:
     Type:  feature request          |      Status:  new
 Priority:  normal                   |   Milestone:  Awaiting Review
Component:  Taxonomy                 |     Version:
 Severity:  normal                   |  Resolution:
 Keywords:  needs-patch 2nd-opinion  |
-------------------------------------+------------------------------

Comment (by nacin):

 There was some discussion on this, possibly in IRC... Basically,
 in_category() is such an old function used by so much code, simply
 renaming it for pure consistency will be annoying, especially for reviewed
 themes. We're evil,  but not that evil. Introducing has_category() but not
 deprecating is_category() seemed like a fine idea at the time.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/16718#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list