Make WordPress Core

Changeset 7030


Ignore:
Timestamp:
02/25/2008 10:18:41 PM (16 years ago)
Author:
westi
Message:

Support category names in in_category(). Fixes #4558 props robmil.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/category-template.php

    r6899 r7030  
    171171    global $post;
    172172
     173    if ( !is_numeric($category) ) {
     174        $category = get_cat_ID($category);
     175    }
     176   
    173177    $categories = get_object_term_cache($post->ID, 'category');
    174178    if ( false === $categories )
Note: See TracChangeset for help on using the changeset viewer.