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

git-svn-id: http://core.svn.wordpress.org/trunk@22114 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Ryan Boren
2012-10-04 18:21:47 +00:00
parent 3c09c184f3
commit faca571a3a
4 changed files with 5 additions and 5 deletions

View File

@@ -2988,9 +2988,9 @@ function get_term_link( $term, $taxonomy = '') {
if ( !is_object($term) ) {
if ( is_int($term) ) {
$term = &get_term($term, $taxonomy);
$term = get_term($term, $taxonomy);
} else {
$term = &get_term_by('slug', $term, $taxonomy);
$term = get_term_by('slug', $term, $taxonomy);
}
}