From ee29ba510f80a6e627fb2c5f86e8421a6f2f687b Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Thu, 4 Oct 2012 18:30:57 +0000 Subject: [PATCH] Avoid 'Only variables should be assigned by reference' warning. Props wonderboymusic. see #21865 git-svn-id: https://develop.svn.wordpress.org/trunk@22116 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/category.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/category.php b/wp-includes/category.php index 7584b21537..724ffa04d6 100644 --- a/wp-includes/category.php +++ b/wp-includes/category.php @@ -185,7 +185,7 @@ function get_cat_ID( $cat_name='General' ) { */ function get_cat_name( $cat_id ) { $cat_id = (int) $cat_id; - $category = &get_category( $cat_id ); + $category = get_category( $cat_id ); if ( ! $category || is_wp_error( $category ) ) return ''; return $category->name;