Skip to content

Commit 7ca6989

Browse files
committed
Menus: Remove caching todo from wp_nav_menu_item_post_type_meta_box().
Remove the note to introduce caching to `wp_nav_menu_item_post_type_meta_box()` as caching has since been introduced to `WP_Query` and therefore `get_posts()`. The comment is out of date. See #63168. git-svn-id: https://develop.svn.wordpress.org/trunk@60980 602fd350-edb4-49c9-b593-d223f7449a82
1 parent f743f69 commit 7ca6989

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/wp-admin/includes/nav-menu.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,6 @@ function wp_nav_menu_item_post_type_meta_box( $data_object, $box ) {
495495
}
496496
}
497497

498-
// @todo Transient caching of these results with proper invalidation on updating of a post of this type.
499498
$get_posts = new WP_Query();
500499
$posts = $get_posts->query( $args );
501500

0 commit comments

Comments
 (0)