[wp-trac] [WordPress Trac] #9227: in get_the_category_list(), filter categories before constructing list
WordPress Trac
noreply at wordpress.org
Sun Sep 27 02:21:45 UTC 2015
#9227: in get_the_category_list(), filter categories before constructing list
-------------------------+-----------------------------
Reporter: KevinB | Owner: wonderboymusic
Type: enhancement | Status: closed
Priority: normal | Milestone: 4.4
Component: Taxonomy | Version: 2.8
Severity: normal | Resolution: fixed
Keywords: has-patch | Focuses: template
-------------------------+-----------------------------
Changes (by boonebgorges):
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"34625"]:
{{{
#!CommitTicketReference repository="" revision="34625"
Introduce `'the_category_list'` filter.
Used to filter categories as structured data, before building markup in
`get_the_category_list()`.
We use this filter in addition to upstream filters (such as
'get_the_categories'`) because those upstream filters are used in numerous
contexts, while `'the_category_list'` is always used for generating markup
for display.
Props KevinB, ericlewis, SergeyBiryukov, DrewAPicture.
Fixes #9227.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/9227#comment:27>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list