From 5c28e2986cf4cf2d32389c36d0967360a20dedfa Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Thu, 15 May 2014 19:13:45 +0000 Subject: [PATCH] In `Walker_Category::start_el()`, `$title` might not be set when `$args` are passed multiple levels into `walk_category_tree()`. See #22400. git-svn-id: https://develop.svn.wordpress.org/trunk@28438 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/category-template.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/category-template.php b/src/wp-includes/category-template.php index 21266fb60f..12f85f2bfc 100644 --- a/src/wp-includes/category-template.php +++ b/src/wp-includes/category-template.php @@ -1001,7 +1001,7 @@ class Walker_Category extends Walker { } else { $alt = ' alt="' . $args['feed'] . '"'; $name = $args['feed']; - $link .= $args['title']; + $link .= empty( $args['title'] ) ? '' : $args['title']; } $link .= '>';