From 531992ff1db07dde21c6194efe838d2aec9d31ad Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Thu, 11 Oct 2018 04:42:49 +0000 Subject: [PATCH] Taxonomy: Make sure `wp_list_categories()` correctly outputs term name of `0`. Props joyously, SergeyBiryukov. Merges [43605] to the 5.0 branch. Fixes #44872. Built from https://develop.svn.wordpress.org/branches/5.0@43712 git-svn-id: http://core.svn.wordpress.org/branches/5.0@43541 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-walker-category.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/class-walker-category.php b/wp-includes/class-walker-category.php index 341c98c142..c01b19beb0 100644 --- a/wp-includes/class-walker-category.php +++ b/wp-includes/class-walker-category.php @@ -99,7 +99,7 @@ class Walker_Category extends Walker { ); // Don't generate an element if the category name is empty. - if ( ! $cat_name ) { + if ( '' === $cat_name ) { return; } diff --git a/wp-includes/version.php b/wp-includes/version.php index 77a610e186..8996b83687 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '5.0-alpha-43710'; +$wp_version = '5.0-alpha-43712'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.