[wp-trac] [WordPress Trac] #37094: wp_get_nav_menu_items should use tax_query
WordPress Trac
noreply at wordpress.org
Mon Jun 13 23:07:09 UTC 2016
#37094: wp_get_nav_menu_items should use tax_query
--------------------------+-----------------------------
Reporter: spacedmonkey | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Menus | Version:
Severity: normal | Keywords:
Focuses: performance |
--------------------------+-----------------------------
When the wp_get_nav_menu_items function was introduced in 3.0, taxonomy
query were not in core. However, as taxonomy queries are now in core, it
removing the need to call get_objects_in_term. Removing this call to
get_objects_in_term, is great, as that function is unfilterable and
uncached.
It also means that any improves to the taxonomy queries, such as caching
or filters could also be put into play here.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/37094>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list