[wp-trac] [WordPress Trac] #32789: Abstract get_category_by_path into get_term_by_path

WordPress Trac noreply at wordpress.org
Sat Sep 12 10:41:04 UTC 2015


#32789: Abstract get_category_by_path into get_term_by_path
------------------------------------------+------------------------------
 Reporter:  sc0ttkclark                   |       Owner:
     Type:  enhancement                   |      Status:  new
 Priority:  normal                        |   Milestone:  Awaiting Review
Component:  Taxonomy                      |     Version:
 Severity:  normal                        |  Resolution:
 Keywords:  needs-patch needs-unit-tests  |     Focuses:
------------------------------------------+------------------------------

Comment (by snakefoot):

 Also if the taxonomy-type doesn't support parent-hierarchy (Like
 categories), then you can perform fast optimization by just doing term-
 lookup of the last slug.

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


More information about the wp-trac mailing list