diff --git a/wp-includes/class-wp-walker.php b/wp-includes/class-wp-walker.php index 13c0b23429..c76451cd94 100644 --- a/wp-includes/class-wp-walker.php +++ b/wp-includes/class-wp-walker.php @@ -342,7 +342,7 @@ class Walker { $top_level_elements = array(); $children_elements = array(); foreach ( $elements as $e ) { - if ( 0 == $e->$parent_field ) { + if ( empty( $e->$parent_field ) ) { $top_level_elements[] = $e; } else { $children_elements[ $e->$parent_field ][] = $e; @@ -412,7 +412,7 @@ class Walker { $parent_field = $this->db_fields['parent']; foreach ( $elements as $e ) { - if ( 0 == $e->$parent_field ) { + if ( empty( $e->$parent_field ) ) { $num++; } } diff --git a/wp-includes/version.php b/wp-includes/version.php index 0bf23f7b33..7108295a72 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.8-beta2-51203'; +$wp_version = '5.8-beta2-51204'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.