[wp-trac] [WordPress Trac] #16792: CategoryWalker, if cat_name is empty, do not append the empty a tag to the output
WordPress Trac
noreply at wordpress.org
Sat Jan 3 02:04:21 UTC 2015
#16792: CategoryWalker, if cat_name is empty, do not append the empty a tag to the
output
-------------------------+---------------------------
Reporter: samo9789 | Owner: boonebgorges
Type: enhancement | Status: closed
Priority: normal | Milestone: 4.2
Component: Taxonomy | Version: 3.1
Severity: trivial | Resolution: fixed
Keywords: has-patch | Focuses:
-------------------------+---------------------------
Changes (by boonebgorges):
* owner: => boonebgorges
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"31025"]:
{{{
#!CommitTicketReference repository="" revision="31025"
In `Walker_Category`, don't generate list elements for empty cat names.
This change allows the 'list_cats' filter to be used to suppress certain
items in category lists, without creating invalid or superfluous markup.
Props samo9789.
Fixes #16792.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/16792#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list