Changeset 7030

Show
Ignore:
Timestamp:
02/25/08 22:18:41 (8 months ago)
Author:
westi
Message:

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

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • 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 )