mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
Add a new parameter to `WP_Query` called `update_menu_item_cache` that when set to true, primes the caches for linked terms and posts for menu item post objects. This change moves logic found in `wp_get_nav_menu_items` into a new function called `update_menu_item_cache`. Update the menu item REST API controller, to pass the `update_menu_item_cache` parameter to the arguments used for the `WP_Query` run to get menu items. Props furi3r, TimothyBlynJacobs, spacedmonkey, peterwilsoncc, mitogh. Fixes #55620. --This line, and those below, will be ignored-- M src/wp-includes/class-wp-query.php M src/wp-includes/nav-menu.php M src/wp-includes/rest-api/endpoints/class-wp-rest-menu-items-controller.php M tests/phpunit/tests/post/nav-menu.php git-svn-id: https://develop.svn.wordpress.org/trunk@53504 602fd350-edb4-49c9-b593-d223f7449a82 |
||
|---|---|---|
| .. | ||
| e2e | ||
| gutenberg | ||
| phpunit | ||
| qunit | ||
| visual-regression | ||