Make WordPress Core


Ignore:
Timestamp:
02/07/2005 07:37:53 AM (20 years ago)
Author:
saxmatt
Message:

Remove querystring variable legacy code

File:
1 edited

Legend:

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

    r2227 r2239  
    7777function comments_rss($commentsrssfilename = 'wp-commentsrss2.php') {
    7878    global $id;
    79     global $querystring_start, $querystring_equal, $querystring_separator;
    8079
    8180    if ('' != get_settings('permalink_structure'))
     
    8887
    8988function get_author_rss_link($echo = false, $author_id, $author_nicename) {
    90        global $querystring_start, $querystring_equal;
    9189       $auth_ID = $author_id;
    9290       $permalink_structure = get_settings('permalink_structure');
     
    9492       if ('' == $permalink_structure) {
    9593           $file = get_settings('siteurl') . '/wp-rss2.php';
    96            $link = $file . $querystring_start . 'author' . $querystring_equal . $author_id;
     94           $link = $file . '?author=' . $author_id;
    9795       } else {
    9896           $link = get_author_link(0, $author_id, $author_nicename);
     
    105103
    106104function get_category_rss_link($echo = false, $category_id, $category_nicename) {
    107        global $querystring_start, $querystring_equal;
    108105       $cat_ID = $category_id;
    109106       $permalink_structure = get_settings('permalink_structure');
     
    111108       if ('' == $permalink_structure) {
    112109               $file = get_settings('siteurl') . '/wp-rss2.php';
    113         $link = $file . $querystring_start . 'cat' . $querystring_equal . $category_id;
     110        $link = $file . '?cat=' . $category_id;
    114111       } else {
    115112        $link = get_category_link(0, $category_id, $category_nicename);
Note: See TracChangeset for help on using the changeset viewer.