From 70e66a0bdfb1eacd8899583e15af675ac6f80a82 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sun, 2 Sep 2018 22:09:24 +0000 Subject: [PATCH] Taxonomy: Make sure `wp_list_categories()` correctly outputs term name of `0`. Props joyously, SergeyBiryukov. Fixes #44872. Built from https://develop.svn.wordpress.org/trunk@43605 git-svn-id: http://core.svn.wordpress.org/trunk@43434 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 e9975ef1af..4c155c721b 100644 --- a/wp-includes/class-walker-category.php +++ b/wp-includes/class-walker-category.php @@ -104,7 +104,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 0d1789885d..8d1fa7c460 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '5.0-alpha-43604'; +$wp_version = '5.0-alpha-43605'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.