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:
parent
d6f78d6554
commit
ee29ba510f
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user