mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-20 19:56:49 +01:00
Taxonomy: Make sure wp_list_categories() correctly outputs term name of 0.
Props joyously, SergeyBiryukov. Merges [43605] to the 4.9 branch. Fixes #44872. Built from https://develop.svn.wordpress.org/branches/4.9@43620 git-svn-id: http://core.svn.wordpress.org/branches/4.9@43449 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
934d7cf523
commit
9016ffbafa
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.9.9-alpha-43619';
|
||||
$wp_version = '4.9.9-alpha-43620';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user