[wp-trac] [WordPress Trac] #15407: get_the_category code duplication
WordPress Trac
wp-trac at lists.automattic.com
Fri Nov 12 21:36:48 UTC 2010
#15407: get_the_category code duplication
--------------------------+-------------------------------------------------
Reporter: filosofo | Owner: filosofo
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: 3.1
Component: Taxonomy | Version: 3.1
Severity: normal | Resolution:
Keywords: has-patch |
--------------------------+-------------------------------------------------
Comment(by filosofo):
I'm not wedded to the name change, but I think the code duplication fix of
the original patch should stay.
I also think that `get_the_categories` as a filter makes more sense than
`get_the_category` or the like, because it's filtering an array.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/15407#comment:8>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list