Ticket #16792 (new enhancement)

Opened 15 months ago

Last modified 15 months ago

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

patchCategoryWalkerSkippedCategory.patch Download (4.1 KB) - added by samo9789 15 months ago.
patch for described minor bug

Change History

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.