mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-13 05:10:18 +00:00
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:
@@ -326,7 +326,7 @@ function _wp_ajax_add_hierarchical_term() {
|
||||
$term_id = $parent->term_id;
|
||||
|
||||
while ( $parent->parent ) { // get the top parent
|
||||
$parent = &get_term( $parent->parent, $taxonomy->name );
|
||||
$parent = get_term( $parent->parent, $taxonomy->name );
|
||||
if ( is_wp_error( $parent ) )
|
||||
break;
|
||||
$term_id = $parent->term_id;
|
||||
|
||||
Reference in New Issue
Block a user