From c569c157f0400344786ce94744c49afce1566e77 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sun, 11 Apr 2021 13:44:13 +0000 Subject: [PATCH] Coding Standards: Simplify the check for parent terms in `export_wp()`. This is more consistent with similar checks elsewhere in core. See #52627. Built from https://develop.svn.wordpress.org/trunk@50699 git-svn-id: http://core.svn.wordpress.org/trunk@50308 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/export.php | 4 ++-- wp-includes/version.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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.