Make WordPress Core


Ignore:
Timestamp:
11/12/2010 08:05:37 PM (14 years ago)
Author:
scribu
Message:

Replace get_the_category() with get_the_categories(). Props filosofo. Fixes #15407

File:
1 edited

Legend:

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

    r16331 r16332  
    350350    // Categories
    351351    if ( is_object_in_taxonomy( $post->post_type, 'category' ) ) {
    352         foreach ( (array) get_the_category($post->ID) as $cat ) {
     352        foreach ( (array) get_the_categories($post->ID) as $cat ) {
    353353            if ( empty($cat->slug ) )
    354354                continue;
Note: See TracChangeset for help on using the changeset viewer.