Changeset 945 for trunk/wp-includes/template-functions-category.php
- Timestamp:
- 02/26/2004 04:15:48 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/template-functions-category.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/template-functions-category.php
r893 r945 17 17 18 18 function get_category_link($echo = false, $category_id, $category_nicename) { 19 global $wpdb, $tablecategories, $post, $querystring_start, $querystring_equal, $ siteurl, $blogfilename, $cache_categories;19 global $wpdb, $tablecategories, $post, $querystring_start, $querystring_equal, $cache_categories; 20 20 $cat_ID = $category_id; 21 21 $permalink_structure = get_settings('permalink_structure'); 22 22 23 23 if ('' == $permalink_structure) { 24 $file = "$siteurl/$blogfilename";24 $file = get_settings('siteurl') . '/' . get_settings('blogfilename'); 25 25 $link = $file.$querystring_start.'cat'.$querystring_equal.$cat_ID; 26 26 } else { … … 28 28 // Get any static stuff from the front 29 29 $front = substr($permalink_structure, 0, strpos($permalink_structure, '%')); 30 $link = $siteurl. $front . 'category/';30 $link = get_settings('siteurl') . $front . 'category/'; 31 31 if ($parent=$cache_categories[$category_id]->category_parent) $link .= get_category_parents($parent, FALSE, '/', TRUE); 32 32 $link .= $category_nicename . '/'; … … 38 38 39 39 function get_category_rss_link($echo = false, $category_id, $category_nicename) { 40 global $querystring_start, $querystring_equal , $siteurl;40 global $querystring_start, $querystring_equal; 41 41 $cat_ID = $category_id; 42 42 $permalink_structure = get_settings('permalink_structure'); 43 43 44 44 if ('' == $permalink_structure) { 45 $file = "$siteurl/wp-rss2.php";45 $file = get_settings('siteurl') . '/wp-rss2.php'; 46 46 $link = $file . $querystring_start . 'cat' . $querystring_equal . $category_id; 47 47 } else { … … 186 186 $selected=0, $hide=0) { 187 187 global $tablecategories, $tableposts, $tablepost2cat, $wpdb; 188 global $pagenow , $siteurl, $blogfilename;188 global $pagenow; 189 189 global $querystring_start, $querystring_equal, $querystring_separator; 190 if (($file == 'blah') || ($file == '')) $file = "$siteurl/$blogfilename";190 if (($file == 'blah') || ($file == '')) $file = get_settings('siteurl') . '/' . get_settings('blogfilename'); 191 191 if (!$selected) $selected=$cat; 192 192 $sort_column = 'cat_'.$sort_column; … … 253 253 function list_cats($optionall = 1, $all = 'All', $sort_column = 'ID', $sort_order = 'asc', $file = '', $list = true, $optiondates = 0, $optioncount = 0, $hide_empty = 1, $use_desc_for_title = 1, $children=FALSE, $child_of=0, $categories=0, $recurse=0) { 254 254 global $tablecategories, $tableposts, $tablepost2cat, $wpdb; 255 global $pagenow , $siteurl, $blogfilename;255 global $pagenow; 256 256 global $querystring_start, $querystring_equal, $querystring_separator; 257 257 // Optiondates now works 258 258 if ('' == $file) { 259 $file = "$siteurl/ $blogfilename";259 $file = "$siteurl/" . get_settings('blogfilename'); 260 260 } 261 261 if (intval($categories)==0){
Note: See TracChangeset
for help on using the changeset viewer.