diff --git a/wp-admin/includes/export.php b/wp-admin/includes/export.php index d33e2ffafb..852f7d54ad 100644 --- a/wp-admin/includes/export.php +++ b/wp-admin/includes/export.php @@ -169,7 +169,7 @@ function export_wp( $args = array() ) { // Put categories in order with no child going before its parent. while ( $cat = array_shift( $categories ) ) { - if ( 0 == $cat->parent || isset( $cats[ $cat->parent ] ) ) { + if ( ! $cat->parent || isset( $cats[ $cat->parent ] ) ) { $cats[ $cat->term_id ] = $cat; } else { $categories[] = $cat; @@ -178,7 +178,7 @@ function export_wp( $args = array() ) { // Put terms in order with no child going before its parent. while ( $t = array_shift( $custom_terms ) ) { - if ( 0 == $t->parent || isset( $terms[ $t->parent ] ) ) { + if ( ! $t->parent || isset( $terms[ $t->parent ] ) ) { $terms[ $t->term_id ] = $t; } else { $custom_terms[] = $t; diff --git a/wp-includes/version.php b/wp-includes/version.php index faff6496c7..c3ade73057 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.8-alpha-50698'; +$wp_version = '5.8-alpha-50699'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.