Make WordPress Core

Changeset 2978


Ignore:
Timestamp:
11/01/2005 06:22:30 PM (19 years ago)
Author:
matt
Message:

Missing global, fix from airport. :)

File:
1 edited

Legend:

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

    r2976 r2978  
    416416
    417417function in_category($category) { // Check if the current post is in the given category
    418     global $category_cache;
     418    global $category_cache, $post;
    419419
    420420    if ( isset( $category_cache[$post->ID][$category] ) )
Note: See TracChangeset for help on using the changeset viewer.