WordPress.org

Make WordPress Core

Opened 3 years ago

Last modified 8 months 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:
Milestone: Awaiting Review Priority: normal
Severity: trivial Version: 3.1
Component: Taxonomy Keywords: has-patch needs-refresh
Focuses: 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 3 years ago.
patch for described minor bug

Download all attachments as: .zip

Change History (5)

comment:1 samo97893 years ago

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

samo97893 years ago

patch for described minor bug

comment:2 avryl8 months ago

  • Component changed from General to Taxonomy
  • Version changed from 3.1 to trunk

comment:3 avryl8 months ago

  • Version changed from trunk to 3.1

comment:4 wonderboymusic8 months ago

  • Keywords needs-refresh added
Note: See TracTickets for help on using tickets.