diff --git a/wp-admin/includes/ajax-actions.php b/wp-admin/includes/ajax-actions.php index cb39a2ee4f..206fa189a4 100644 --- a/wp-admin/includes/ajax-actions.php +++ b/wp-admin/includes/ajax-actions.php @@ -1027,7 +1027,9 @@ function wp_ajax_add_tag() { $wp_list_table = _get_list_table( 'WP_Terms_List_Table', array( 'screen' => $_POST['screen'] ) ); - $level = 0; + $level = 0; + $noparents = ''; + if ( is_taxonomy_hierarchical( $taxonomy ) ) { $level = count( get_ancestors( $tag->term_id, $taxonomy, 'taxonomy' ) ); ob_start(); diff --git a/wp-includes/version.php b/wp-includes/version.php index 3313f8bcf2..ec1e0d7f6f 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.2-alpha-45033'; +$wp_version = '5.2-alpha-45034'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.