WordPress.org

Make WordPress Core


Ignore:
Timestamp:
10/23/2017 10:39:02 PM (3 years ago)
Author:
westonruter
Message:

Menus: Don't prime nav menu items cache if a persistent cache is being used.

Amends [14560].
Props david.binda.
See #12734.
Fixes #41662.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/nav-menu.php

    r41887 r41982  
    664664
    665665    // Get all posts and terms at once to prime the caches
    666     if ( empty( $fetched[$menu->term_id] ) || wp_using_ext_object_cache() ) {
     666    if ( empty( $fetched[ $menu->term_id ] ) && ! wp_using_ext_object_cache() ) {
    667667        $fetched[$menu->term_id] = true;
    668668        $posts = array();
Note: See TracChangeset for help on using the changeset viewer.