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

git-svn-id: http://svn.automattic.com/wordpress/trunk@295 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
mikelittle 2003-08-06 22:40:11 +00:00
parent af9b7abc5f
commit 4a9ceacae5
1 changed files with 5 additions and 7 deletions

View File

@ -8,8 +8,6 @@ if (!isset($querystring_start)) {
$querystring_separator = '&'; $querystring_separator = '&';
} }
/* template functions... */ /* template functions... */
@ -949,7 +947,7 @@ function get_the_category() {
if ((empty($cache_categories[$cat_ID])) OR (!$use_cache)) { if ((empty($cache_categories[$cat_ID])) OR (!$use_cache)) {
$cat_name = $wpdb->get_var("SELECT cat_name FROM $tablecategories WHERE cat_ID = '$cat_ID'"); $cat_name = $wpdb->get_var("SELECT cat_name FROM $tablecategories WHERE cat_ID = '$cat_ID'");
++$querycount; ++$querycount;
$cache_categories[$cat_ID] = &$cat_name; $cache_categories[$cat_ID] = $cat_name;
} else { } else {
$cat_name = $cache_categories[$cat_ID]; $cat_name = $cache_categories[$cat_ID];
} }
@ -961,7 +959,7 @@ function get_the_category_by_ID($cat_ID) {
if ((!$cache_categories[$cat_ID]) OR (!$use_cache)) { if ((!$cache_categories[$cat_ID]) OR (!$use_cache)) {
$cat_name = $wpdb->get_var("SELECT cat_name FROM $tablecategories WHERE cat_ID = '$cat_ID'"); $cat_name = $wpdb->get_var("SELECT cat_name FROM $tablecategories WHERE cat_ID = '$cat_ID'");
++$querycount; ++$querycount;
$cache_categories[$cat_ID] = &$cat_name; $cache_categories[$cat_ID] = $cat_name;
} else { } else {
$cat_name = $cache_categories[$cat_ID]; $cat_name = $cache_categories[$cat_ID];
} }
@ -1164,9 +1162,9 @@ function comment_author_email() {
function comment_author_link() { function comment_author_link() {
global $comment; global $comment;
$url = trim(stripslashes(&$comment->comment_author_url)); $url = trim(stripslashes($comment->comment_author_url));
$email = &$comment->comment_author_email; $email = $comment->comment_author_email;
$author = stripslashes(&$comment->comment_author); $author = stripslashes($comment->comment_author);
$url = str_replace('http://url', '', $url); $url = str_replace('http://url', '', $url);