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

git-svn-id: https://develop.svn.wordpress.org/trunk@22117 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2012-10-04 18:37:43 +00:00
parent ee29ba510f
commit 9d85e6b9d0
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -41,7 +41,7 @@ function get_category_link( $category ) {
*/
function get_category_parents( $id, $link = false, $separator = '/', $nicename = false, $visited = array() ) {
$chain = '';
$parent = &get_category( $id );
$parent = get_category( $id );
if ( is_wp_error( $parent ) )
return $parent;
@@ -135,7 +135,7 @@ function _usort_terms_by_ID( $a, $b ) {
*/
function get_the_category_by_ID( $cat_ID ) {
$cat_ID = (int) $cat_ID;
$category = &get_category( $cat_ID );
$category = get_category( $cat_ID );
if ( is_wp_error( $category ) )
return $category;
return $category->name;