Make WordPress Core


Ignore:
Timestamp:
11/12/2010 08:05:37 PM (13 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/link-template.php

    r16114 r16332  
    120120        $category = '';
    121121        if ( strpos($permalink, '%category%') !== false ) {
    122             $cats = get_the_category($post->ID);
     122            $cats = get_the_categories($post->ID);
    123123            if ( $cats ) {
    124124                usort($cats, '_usort_terms_by_ID'); // order by ID
Note: See TracChangeset for help on using the changeset viewer.