Changeset 1244 for trunk/wp-includes/template-functions-category.php
- Timestamp:
- 05/09/2004 02:52:27 AM (22 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/template-functions-category.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/template-functions-category.php
r1235 r1244 25 25 $link = $file.$querystring_start.'cat'.$querystring_equal.$cat_ID; 26 26 } else { 27 $category_nicename = $cache_categories[$category_id]->cat_name; 28 $category_nicename = preg_replace( '|[^a-z0-9-]|i', '', $category_nicename ); 27 $category_nicename = $cache_categories[$category_id]->category_nicename; 29 28 // Get any static stuff from the front 30 29 $front = substr($permalink_structure, 0, strpos($permalink_structure, '%')); 30 if ( '' == get_settings('category_base') ) : 31 $link = get_settings('home') . $front . 'category/'; 32 else : 31 33 $link = get_settings('home') . get_settings('category_base') . '/'; 34 endif; 32 35 if ($parent=$cache_categories[$category_id]->category_parent) $link .= get_category_parents($parent, FALSE, '/', TRUE); 33 36 $link .= $category_nicename . '/';
Note: See TracChangeset
for help on using the changeset viewer.