Customizer: Don't query for postmeta for Custom CSS (for not-current-themes) and Customizer Changeset posts.
Props dlh. Fixes #39194. Built from https://develop.svn.wordpress.org/trunk@39692 git-svn-id: http://core.svn.wordpress.org/trunk@39632 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
577a192ebd
commit
9f381dbea6
|
@ -798,7 +798,8 @@ final class WP_Customize_Manager {
|
||||||
'no_found_rows' => true,
|
'no_found_rows' => true,
|
||||||
'cache_results' => true,
|
'cache_results' => true,
|
||||||
'update_post_meta_cache' => false,
|
'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 ) ) {
|
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.
|
// Note: 'fields'=>'ids' is not being used in order to cache the post object as it will be needed.
|
||||||
|
|
|
@ -1644,7 +1644,8 @@ function wp_get_custom_css_post( $stylesheet = '' ) {
|
||||||
'no_found_rows' => true,
|
'no_found_rows' => true,
|
||||||
'cache_results' => true,
|
'cache_results' => true,
|
||||||
'update_post_meta_cache' => false,
|
'update_post_meta_cache' => false,
|
||||||
'update_term_meta_cache' => false,
|
'update_post_term_cache' => false,
|
||||||
|
'lazy_load_term_meta' => false,
|
||||||
);
|
);
|
||||||
|
|
||||||
$post = null;
|
$post = null;
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.8-alpha-39691';
|
$wp_version = '4.8-alpha-39692';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 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…
Reference in New Issue