Make WordPress Core


Ignore:
Timestamp:
05/05/2004 07:34:41 AM (21 years ago)
Author:
saxmatt
Message:

Some style cleanup. Category base and additional URI options from Jay McCarthy.

File:
1 edited

Legend:

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

    r1217 r1227  
    2525        $link = $file.$querystring_start.'cat'.$querystring_equal.$cat_ID;
    2626    } else {
    27         if ('' == $category_nicename) $category_nicename = $cache_categories[$category_id]->category_nicename;
    28         // Get any static stuff from the front
     27        $category_nicename = $cache_categories[$category_id]->cat_name;
     28        $category_nicename = preg_replace( '|[^a-z0-9-]|i', '', $category_nicename );
     29        // Get any static stuff from the front
    2930        $front = substr($permalink_structure, 0, strpos($permalink_structure, '%'));
    3031        $link = get_settings('home') . $front . 'category/';
Note: See TracChangeset for help on using the changeset viewer.