Make WordPress Core


Ignore:
Timestamp:
04/20/2004 10:56:47 PM (20 years ago)
Author:
saxmatt
Message:

Changed to superglobals, and eliminated $use_cache (since we always do).

File:
1 edited

Legend:

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

    r1088 r1108  
    113113
    114114function get_the_category_by_ID($cat_ID) {
    115     global $tablecategories, $cache_categories, $use_cache, $wpdb;
    116     if ((!$cache_categories[$cat_ID]) OR (!$use_cache)) {
     115    global $tablecategories, $cache_categories, $wpdb;
     116    if ( !$cache_categories[$cat_ID]) ) {
    117117        $cat_name = $wpdb->get_var("SELECT cat_name FROM $tablecategories WHERE cat_ID = '$cat_ID'");
    118118        $cache_categories[$cat_ID]->cat_name = $cat_name;
Note: See TracChangeset for help on using the changeset viewer.