Opened 2 years ago

Last modified 2 years ago

#16792 new enhancement

CategoryWalker, if cat_name is empty, do not append the empty a tag to the output

Reported by: samo9789 Owned by:
Priority: normal Milestone: Awaiting Review
Component: General Version: 3.1
Severity: trivial Keywords: has-patch
Cc:

Description

If the theme is customized to skip some categories by doing something like add_filter('list_cats', 'hideSomeCatgory') and returning a null or an empty string as cat name, the CategoryWalker will append an empty html element to the output

Attachments (1)

patchCategoryWalkerSkippedCategory.patch (4.1 KB) - added by samo9789 2 years ago.
patch for described minor bug

Download all attachments as: .zip

Change History (2)

Hi,

This is my first contribution to an existing open source project. I hope I respected the ticket creation and patch submission process and that this can help improve Wordpress. I hope someone will review this correction.

Take care,
samo9789

patch for described minor bug

Note: See TracTickets for help on using tickets.