[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:07:01 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):
I have noticed that get_category_by_path doesn't work well with category-
hierarchy, where the same slug exists with different parent.
Maybe fix this new generic term-method to handle this? And make
get_category_by_path() call the new method?
Could be nice if the following was possible:
/men/shoes/
/women/shoes/
--
Ticket URL: <https://core.trac.wordpress.org/ticket/32789#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list