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:
parent
359de78b7d
commit
c15d7d3a95
|
@ -185,7 +185,7 @@ function get_cat_ID( $cat_name='General' ) {
|
||||||
*/
|
*/
|
||||||
function get_cat_name( $cat_id ) {
|
function get_cat_name( $cat_id ) {
|
||||||
$cat_id = (int) $cat_id;
|
$cat_id = (int) $cat_id;
|
||||||
$category = &get_category( $cat_id );
|
$category = get_category( $cat_id );
|
||||||
if ( ! $category || is_wp_error( $category ) )
|
if ( ! $category || is_wp_error( $category ) )
|
||||||
return '';
|
return '';
|
||||||
return $category->name;
|
return $category->name;
|
||||||
|
|
Loading…
Reference in New Issue