[wp-trac] [WordPress Trac] #55372: Use tax_query in wp_get_nav_menu_items

WordPress Trac noreply at wordpress.org
Tue Mar 15 12:12:22 UTC 2022


#55372: Use tax_query in wp_get_nav_menu_items
-------------------------------------------------+-------------------------
 Reporter:  spacedmonkey                         |       Owner:  (none)
     Type:  enhancement                          |      Status:  new
 Priority:  normal                               |   Milestone:  Awaiting
                                                 |  Review
Component:  Menus                                |     Version:  3.0
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch needs-unit-tests good-     |     Focuses:
  first-bug                                      |  performance
-------------------------------------------------+-------------------------

Comment (by spacedmonkey):

 I would love the thoughts on @boonebgorges on this one.

 Basically, it makes more sense to use taxonomy query check. Tax queries
 are cached now and performance of them is pretty solid. Long term, I would
 like deprecate `get_objects_in_term`, as it is only used in two place (
 one them is here ).

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


More information about the wp-trac mailing list