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

WordPress Trac noreply at wordpress.org
Thu Jun 25 15:59:03 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       |   Keywords:
  Focuses:               |
-------------------------+-----------------------------
 Having a function like `get_term_by_path` would be great as currently you
 have to fork the `get_category_by_path` function on your own to get a term
 by path for any other custom taxonomy.

 Would there be any opposition to a patch for this? The abstracted function
 wouldn't house the `_make_cat_compat` usage, which would remain in the
 backwards compatible `get_category_by_path` function after checking to see
 if $category is not null.

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


More information about the wp-trac mailing list