Make WordPress Core


Ignore:
Timestamp:
11/12/2010 09:53:15 PM (15 years ago)
Author:
westi
Message:

Revert most of [16332] - renaming and deprecating a commonly used function is silly. Improving it is good. Fixes #15407.

File:
1 edited

Legend:

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

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