[wp-trac] [WordPress Trac] #30415: Allow get_category_parents() to be used for any taxonomy

WordPress Trac noreply at wordpress.org
Thu Nov 20 09:14:07 UTC 2014


#30415: Allow get_category_parents() to be used for any taxonomy
----------------------------------------+------------------------------
 Reporter:  hlashbrooke                 |       Owner:
     Type:  enhancement                 |      Status:  new
 Priority:  normal                      |   Milestone:  Awaiting Review
Component:  Taxonomy                    |     Version:  trunk
 Severity:  normal                      |  Resolution:
 Keywords:  has-patch needs-unit-tests  |     Focuses:
----------------------------------------+------------------------------

Comment (by jeffikus):

 Replying to [comment:3 hlashbrooke]:
 > Replying to [comment:2 jeffikus]:
 > > I'm just thinking, the category-template file contains mostly category
 specific functions. It would probably be better to move this functionality
 into wp-includes/taxonomy.php and call the new function from
 get_category_parents() to eventually deprecate it.
 > That's true and I considered that, but there are other general term
 functions in that file, so thought I'd stick it there for now until
 there's some official go ahead to move it to a different file. I don't
 want to mess with the file structure too much without knowing if it's the
 best move or not.
 I'll take a stab at it over the weekend, maybe tonight.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/30415#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list