[wp-trac] [WordPress Trac] #8722: get_categories allows custom taxos, get_category doesn't

WordPress Trac noreply at wordpress.org
Sat Sep 21 17:00:39 UTC 2013


#8722: get_categories allows custom taxos, get_category doesn't
------------------------------+-------------------
 Reporter:  Malaiac           |       Owner:  ryan
     Type:  defect (bug)      |      Status:  new
 Priority:  normal            |   Milestone:  3.7
Component:  Taxonomy          |     Version:  2.7
 Severity:  normal            |  Resolution:
 Keywords:  has-patch commit  |
------------------------------+-------------------
Changes (by wonderboymusic):

 * keywords:  has-patch => has-patch commit


Comment:

 > It might make more sense to convert all uses of get_category() to
 get_term()

 Yes, and it actually removes the need for `_make_cat_compat()` in the
 functions that are only looking for one property. [attachment:8722.3.diff
 .3.diff] does this.

--
Ticket URL: <http://core.trac.wordpress.org/ticket/8722#comment:7>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list