diff --git a/wp-includes/taxonomy.php b/wp-includes/taxonomy.php index 1894e3284f..e6c4332fbb 100644 --- a/wp-includes/taxonomy.php +++ b/wp-includes/taxonomy.php @@ -1770,7 +1770,7 @@ function wp_delete_term( $term, $taxonomy, $args = array() ) { $defaults = array(); if ( 'category' === $taxonomy ) { - $defaults['default'] = get_option( 'default_category' ); + $defaults['default'] = (int) get_option( 'default_category' ); if ( $defaults['default'] === $term ) { return 0; // Don't delete the default category } @@ -3541,7 +3541,7 @@ function _get_term_children( $term_id, $terms, $taxonomy, &$ancestors = array() continue; } - if ( $term->parent === $term_id ) { + if ( (int) $term->parent === $term_id ) { if ( $use_id ) { $term_list[] = $term->term_id; } else { diff --git a/wp-includes/version.php b/wp-includes/version.php index e2b7b370b7..37c7049989 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.3-alpha-45710'; +$wp_version = '5.3-alpha-45711'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.