Make WordPress Core

Changeset 749


Ignore:
Timestamp:
01/10/2004 01:46:27 AM (21 years ago)
Author:
alex_t_king
Message:

making the category links include the trailing slash

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/options-permalink.php

    r640 r749  
    152152RewriteBase <?php echo $site_root; ?>
    153153RewriteRule ^<?php echo $match; echo '$ ' . $site_root . $query ?> [QSA]
    154 RewriteRule ^<?php echo $catmatch; ?>(.*) <?php echo $site_root; ?>index.php?category_name=$1 [QSA]</textarea>
     154RewriteRule ^<?php echo $catmatch; ?>?([0-9a-z-]+)?/? <?php echo $site_root; ?>index.php?category_name=$1 [QSA]</textarea>
    155155    </form>
    156156</div>
  • trunk/wp-includes/template-functions.php

    r735 r749  
    13591359        // Get any static stuff from the front
    13601360        $front = substr($permalink_structure, 0, strpos($permalink_structure, '%'));
    1361         $link = $siteurl . $front . 'category/' . $category_nicename;
     1361        $link = $siteurl . $front . 'category/' . $category_nicename . '/';
    13621362    }
    13631363
Note: See TracChangeset for help on using the changeset viewer.