mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-16 19:46:21 +00:00
Menus: Don't prime nav menu items cache if a persistent cache is being used.
Amends [14560]. Props david.binda. See #12734. Fixes #41662. Built from https://develop.svn.wordpress.org/trunk@41982 git-svn-id: http://core.svn.wordpress.org/trunk@41816 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
94e74066e9
commit
fce310e744
@ -663,7 +663,7 @@ function wp_get_nav_menu_items( $menu, $args = array() ) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Get all posts and terms at once to prime the caches
|
// Get all posts and terms at once to prime the caches
|
||||||
if ( empty( $fetched[$menu->term_id] ) || wp_using_ext_object_cache() ) {
|
if ( empty( $fetched[ $menu->term_id ] ) && ! wp_using_ext_object_cache() ) {
|
||||||
$fetched[$menu->term_id] = true;
|
$fetched[$menu->term_id] = true;
|
||||||
$posts = array();
|
$posts = array();
|
||||||
$terms = array();
|
$terms = array();
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.9-beta3-41981';
|
$wp_version = '4.9-beta3-41982';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user