[wp-trac] Re: [WordPress Trac] #9227: in get_the_category_list(),
filter categories before constructing list
WordPress Trac
wp-trac at lists.automattic.com
Tue Feb 24 23:31:14 GMT 2009
#9227: in get_the_category_list(), filter categories before constructing list
-------------------------+--------------------------------------------------
Reporter: KevinB | Owner: anonymous
Type: enhancement | Status: new
Priority: normal | Milestone: Unassigned
Component: Template | Version: 2.7
Severity: normal | Keywords: category, template, filter
-------------------------+--------------------------------------------------
Comment(by filosofo):
Replying to [ticket:9227 KevinB]:
> I had considered calling the new hook ''''get_the_category_for_list''''.
Instead I'm suggesting a more generic ''''get_the_category'''' hook,
'''passing context''' as the second argument. That would leave the API
consistent for possible future use in filtering other contexts.
So wouldn't it make more sense to add the filter to get_the_category()'s
return?
--
Ticket URL: <http://core.trac.wordpress.org/ticket/9227#comment:2>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list