name, $b->name ); } public static function maybe_get_split_term( $old_term_id = '', $taxonomy = '' ) { $term_id = $old_term_id; if ( 'tag' == $taxonomy ) { $taxonomy = 'post_tag'; } if ( function_exists( 'wp_get_split_term' ) && $new_term_id = wp_get_split_term( $old_term_id, $taxonomy ) ) { $term_id = $new_term_id; } return $term_id; } }