mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 12:20:22 +00:00
Avoid 'Only variables should be assigned by reference' warning. Props wonderboymusic. see #21865
git-svn-id: https://develop.svn.wordpress.org/trunk@22114 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user