WordPress.org

Make WordPress Core


Ignore:
Timestamp:
05/31/2007 09:38:33 PM (13 years ago)
Author:
ryan
Message:

Abstract object term cache a bit more. see #4189

File:
1 edited

Legend:

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

    r5598 r5616  
    6767        $id = (int) $post->ID;
    6868
    69     $categories = get_post_term_cache($id, 'category');
     69    $categories = get_object_term_cache($id, 'category');
    7070    if ( false === $categories )
    7171        $categories = get_object_terms($id, 'category');
     
    419419        $id = (int) $post->ID;
    420420
    421     $tags = get_post_term_cache($id, 'post_tag');
     421    $tags = get_object_term_cache($id, 'post_tag');
    422422    if ( false === $tags )
    423423        $tags = get_object_terms($id, 'post_tag');
Note: See TracChangeset for help on using the changeset viewer.