Make WordPress Core


Ignore:
Timestamp:
12/06/2007 07:49:33 PM (19 years ago)
Author:
ryan
Message:

Remove unused vars. Props DD32. see #5418

File:
1 edited

Legend:

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

    r6328 r6364  
    9999
    100100
    101 function comments_rss_link($link_text = 'Comments RSS', $commentsrssfilename = 'nolongerused') {
     101function comments_rss_link($link_text = 'Comments RSS', $deprecated = '') {
    102102        $url = get_post_comments_feed_link();
    103103        echo "<a href='$url'>$link_text</a>";
    … …  
    105105
    106106
    107 function comments_rss($commentsrssfilename = 'nolongerused') {
     107function comments_rss($deprecated = '') {
    108108        return get_post_comments_feed_link();
    109109}
    … …  
    111111
    112112function get_author_rss_link($echo = false, $author_id, $author_nicename) {
    113         $auth_ID = (int) $author_id;
     113        $author_id = (int) $author_id;
    114114        $permalink_structure = get_option('permalink_structure');
    115115
    … …  
    169169
    170170
    171 function get_category_rss_link($echo = false, $cat_ID, $category_nicename) {
    172         $link = get_category_feed_link($cat_ID, $feed = 'rss2');
     171function get_category_rss_link($echo = false, $cat_ID, $deprecated = '') {
     172        $link = get_category_feed_link($cat_ID, 'rss2');
    173173
    174174        if ( $echo )
    … …  
    181181        $categories = get_the_category();
    182182        $tags = get_the_tags();
    183         $home = get_bloginfo_rss('home');
    184183        $the_list = '';
    185184        $cat_names = array();
    … …  
    253252
    254253function rss_enclosure() {
    255         global $id, $post;
     254        global $post;
    256255        if ( !empty($post->post_password) && ($_COOKIE['wp-postpass_'.COOKIEHASH] != $post->post_password) )
    257256                return;
    … …  
    268267
    269268function atom_enclosure() {
    270         global $id, $post;
     269        global $post;
    271270        if ( !empty($post->post_password) && ($_COOKIE['wp-postpass_'.COOKIEHASH] != $post->post_password) )
    272271                return;
Note: See TracChangeset for help on using the changeset viewer.