[wp-trac] [WordPress Trac] #10277: How to get root category

WordPress Trac wp-trac at lists.automattic.com
Sun Dec 20 10:47:43 UTC 2009


#10277: How to get root category
-------------------------+--------------------------------------------------
 Reporter:  bi0xid       |       Owner:  filosofo      
     Type:  enhancement  |      Status:  new           
 Priority:  normal       |   Milestone:  Future Release
Component:  Taxonomy     |     Version:  2.9           
 Severity:  normal       |    Keywords:  root category 
-------------------------+--------------------------------------------------

Comment(by bi0xid):

 Replying to [comment:6 hakre]:
 > I like the Idea to have such a function but as said, this needs to be
 implemented properly. At least endless recursion must be successfully
 prevented. Database should be taken into considerations to not make such a
 function more expensive than it must be.

 I have used filosofo's implementation in .diff. I think it prevents
 endless recursion and database problems. What do you think?

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


More information about the wp-trac mailing list