Make WordPress Core


Ignore:
Timestamp:
04/28/2004 07:27:03 AM (21 years ago)
Author:
saxmatt
Message:

Allow WordPress installation URI and blog URI to be different.

File:
1 edited

Legend:

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

    r1191 r1203  
    2222   
    2323    if ('' == $permalink_structure) {
    24         $file = get_settings('siteurl') . '/' . get_settings('blogfilename');
     24        $file = get_settings('home') . '/' . get_settings('blogfilename');
    2525        $link = $file.$querystring_start.'cat'.$querystring_equal.$cat_ID;
    2626    } else {
     
    2828        // Get any static stuff from the front
    2929        $front = substr($permalink_structure, 0, strpos($permalink_structure, '%'));
    30         $link = get_settings('siteurl') . $front . 'category/';
     30        $link = get_settings('home') . $front . 'category/';
    3131        if ($parent=$cache_categories[$category_id]->category_parent) $link .= get_category_parents($parent, FALSE, '/', TRUE);
    3232        $link .= $category_nicename . '/';
     
    188188    global $pagenow;
    189189    global $querystring_start, $querystring_equal, $querystring_separator;
    190     if (($file == 'blah') || ($file == '')) $file = get_settings('siteurl') . '/' . get_settings('blogfilename');
     190    if (($file == 'blah') || ($file == '')) $file = get_settings('home') . '/' . get_settings('blogfilename');
    191191    if (!$selected) $selected=$cat;
    192192    $sort_column = 'cat_'.$sort_column;
     
    260260    // Optiondates now works
    261261    if ('' == $file) {
    262         $file = get_settings('siteurl') . '/' . get_settings('blogfilename');
     262        $file = get_settings('home') . '/' . get_settings('blogfilename');
    263263    }
    264264    if (intval($categories)==0){
Note: See TracChangeset for help on using the changeset viewer.