Make WordPress Core

Changeset 295


Ignore:
Timestamp:
08/06/2003 10:40:11 PM (23 years ago)
Author:
mikelittle
Message:

Fixed call by reference warning. It's not needed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/b2-include/b2template.functions.php

    r294 r295  
    88    $querystring_separator = '&';
    99}
    10 
    11 
    1210
    1311/* template functions... */
     
    950948        $cat_name = $wpdb->get_var("SELECT cat_name FROM $tablecategories WHERE cat_ID = '$cat_ID'");
    951949        ++$querycount;
    952         $cache_categories[$cat_ID] = &$cat_name;
     950        $cache_categories[$cat_ID] = $cat_name;
    953951    } else {
    954952        $cat_name = $cache_categories[$cat_ID];
     
    962960        $cat_name = $wpdb->get_var("SELECT cat_name FROM $tablecategories WHERE cat_ID = '$cat_ID'");
    963961        ++$querycount;
    964         $cache_categories[$cat_ID] = &$cat_name;
     962        $cache_categories[$cat_ID] = $cat_name;
    965963    } else {
    966964        $cat_name = $cache_categories[$cat_ID];
     
    11651163function comment_author_link() {
    11661164    global $comment;
    1167     $url = trim(stripslashes(&$comment->comment_author_url));
    1168     $email = &$comment->comment_author_email;
    1169     $author = stripslashes(&$comment->comment_author);
     1165    $url = trim(stripslashes($comment->comment_author_url));
     1166    $email = $comment->comment_author_email;
     1167    $author = stripslashes($comment->comment_author);
    11701168
    11711169    $url = str_replace('http://url', '', $url);
Note: See TracChangeset for help on using the changeset viewer.