diff --git a/wp-includes/category-template.php b/wp-includes/category-template.php index 7f2c539676..ad66987f7b 100644 --- a/wp-includes/category-template.php +++ b/wp-includes/category-template.php @@ -996,6 +996,11 @@ class Walker_Category extends Walker { $category ); + // Don't generate an element if the category name is empty. + if ( ! $cat_name ) { + return; + } + $link = 'description ) ) { /** diff --git a/wp-includes/version.php b/wp-includes/version.php index 937b4b977e..4de1766b33 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.2-alpha-31024'; +$wp_version = '4.2-alpha-31025'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.