Remove unused local vars in delete_plugins(), delete_theme(), WP_Date_Query->validate_date_values(), global_terms(), and WP_Text_Diff_Renderer_Table->_changed().
This will clear out the "Unused Code" label in the next Scrutinizer report. See #30799. Built from https://develop.svn.wordpress.org/trunk@31217 git-svn-id: http://core.svn.wordpress.org/trunk@31198 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -1805,10 +1805,12 @@ function global_terms( $term_id, $deprecated = '' ) {
|
||||
}
|
||||
} elseif ( $global_id != $term_id ) {
|
||||
$local_id = $wpdb->get_row( $wpdb->prepare( "SELECT term_id FROM $wpdb->terms WHERE term_id = %d", $global_id ) );
|
||||
if ( null != $local_id )
|
||||
$local_id = global_terms( $local_id );
|
||||
if ( 10 < $global_terms_recurse )
|
||||
if ( null != $local_id ) {
|
||||
global_terms( $local_id );
|
||||
if ( 10 < $global_terms_recurse ) {
|
||||
$global_id = $term_id;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if ( $global_id != $term_id ) {
|
||||
|
||||
Reference in New Issue
Block a user