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
This commit is contained in:
Ryan Boren 2012-10-04 18:30:57 +00:00
parent d6f78d6554
commit ee29ba510f
1 changed files with 1 additions and 1 deletions

View File

@ -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;