Make WordPress Core


Ignore:
Timestamp:
02/28/2006 08:00:39 AM (21 years ago)
Author:
ryan
Message:

Add get_category_by_path(). Remove old fullpath stuff.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/cache.php

    r3517 r3576  
    182182                                foreach ($dogs as $catt)
    183183                                        $this->cache['category'][$catt->cat_ID] = $catt;
    184 
    185                                 foreach ($this->cache['category'] as $catt) {
    186                                         $curcat = $catt->cat_ID;
    187                                         $fullpath = '/'.$this->cache['category'][$catt->cat_ID]->category_nicename;
    188                                         while ($this->cache['category'][$curcat]->category_parent != 0) {
    189                                                 $curcat = $this->cache['category'][$curcat]->category_parent;
    190                                                 $fullpath = '/'.$this->cache['category'][$curcat]->category_nicename.$fullpath;
    191                                         }
    192                                         $this->cache['category'][$catt->cat_ID]->fullpath = $fullpath;
    193                                 }
    194184                        }
    195185                } else
Note: See TracChangeset for help on using the changeset viewer.