From c1fc065ac4e6f9a9118aed9606acc2aa58bd0e61 Mon Sep 17 00:00:00 2001 From: Dion Hulse Date: Thu, 5 Jan 2017 08:11:30 +0000 Subject: [PATCH] Customizer: Don't query for postmeta for Custom CSS (for not-current-themes) and Customizer Changeset posts. Props dlh. Fixes #39194. git-svn-id: https://develop.svn.wordpress.org/trunk@39692 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/class-wp-customize-manager.php | 3 ++- src/wp-includes/theme.php | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/wp-includes/class-wp-customize-manager.php b/src/wp-includes/class-wp-customize-manager.php index 4ac25232ff..f80708a23f 100644 --- a/src/wp-includes/class-wp-customize-manager.php +++ b/src/wp-includes/class-wp-customize-manager.php @@ -798,7 +798,8 @@ final class WP_Customize_Manager { 'no_found_rows' => true, 'cache_results' => true, 'update_post_meta_cache' => false, - 'update_term_meta_cache' => false, + 'update_post_term_cache' => false, + 'lazy_load_term_meta' => false, ) ); if ( ! empty( $changeset_post_query->posts ) ) { // Note: 'fields'=>'ids' is not being used in order to cache the post object as it will be needed. diff --git a/src/wp-includes/theme.php b/src/wp-includes/theme.php index 24fa1116cf..dd8d7e6e7e 100644 --- a/src/wp-includes/theme.php +++ b/src/wp-includes/theme.php @@ -1644,7 +1644,8 @@ function wp_get_custom_css_post( $stylesheet = '' ) { 'no_found_rows' => true, 'cache_results' => true, 'update_post_meta_cache' => false, - 'update_term_meta_cache' => false, + 'update_post_term_cache' => false, + 'lazy_load_term_meta' => false, ); $post = null;