Make WordPress Core


Ignore:
Timestamp:
02/15/2007 07:07:12 AM (18 years ago)
Author:
markjaquith
Message:

Consistent use or disuse of trailing slashes in URLs according to user preference. props MathiasBynens. fixes #1485

File:
1 edited

Legend:

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

    r4795 r4886  
    3333
    3434        if ( $parent = $category->category_parent )
    35             $category_nicename = get_category_parents($parent, false, '/', true) . $category_nicename . '/';
     35            $category_nicename = get_category_parents($parent, false, '/', true) . $category_nicename;
    3636
    3737        $catlink = str_replace('%category%', $category_nicename, $catlink);
    38         $catlink = get_option('home') . trailingslashit($catlink);
     38        $catlink = get_option('home') . user_trailingslashit($catlink);
    3939    }
    4040    return apply_filters('category_link', $catlink, $category_id);
Note: See TracChangeset for help on using the changeset viewer.