Make WordPress Core


Ignore:
Timestamp:
11/12/2010 09:53:15 PM (13 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/link-template.php

    r16332 r16334  
    120120        $category = '';
    121121        if ( strpos($permalink, '%category%') !== false ) {
    122             $cats = get_the_categories($post->ID);
     122            $cats = get_the_category($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.