Avoid 'Only variables should be assigned by reference' warning. Props wonderboymusic. see #21865

git-svn-id: http://core.svn.wordpress.org/trunk@22116 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Ryan Boren 2012-10-04 18:30:57 +00:00
parent 359de78b7d
commit c15d7d3a95
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;