From 4499c7a17f17220328e704f73c5cc799a3d52a6f Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Wed, 23 Mar 2022 16:28:06 +0000 Subject: [PATCH] Tests: Use a more descriptive name for the sticky posts test that verifies the parameters from the main query. Reorder the parameters of the `get_posts()` call for consistency with similar calls elsewhere. Follow-up to [52982]. See #36907. Built from https://develop.svn.wordpress.org/trunk@52985 git-svn-id: http://core.svn.wordpress.org/trunk@52574 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-wp-query.php | 4 ++-- wp-includes/version.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/wp-includes/class-wp-query.php b/wp-includes/class-wp-query.php index ac0faa3edb..10e7a3c7fa 100644 --- a/wp-includes/class-wp-query.php +++ b/wp-includes/class-wp-query.php @@ -3260,14 +3260,14 @@ class WP_Query { if ( ! empty( $sticky_posts ) ) { $stickies = get_posts( array( - 'cache_results' => $q['cache_results'], - 'lazy_load_term_meta' => $q['lazy_load_term_meta'], 'post__in' => $sticky_posts, 'post_type' => $post_type, 'post_status' => 'publish', 'suppress_filters' => $q['suppress_filters'], + 'cache_results' => $q['cache_results'], 'update_post_meta_cache' => $q['update_post_meta_cache'], 'update_post_term_cache' => $q['update_post_term_cache'], + 'lazy_load_term_meta' => $q['lazy_load_term_meta'], ) ); diff --git a/wp-includes/version.php b/wp-includes/version.php index bbb2d2c1d2..8b82a8562a 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.0-alpha-52984'; +$wp_version = '6.0-alpha-52985'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.