From ea5c6469c9967bf501ff093a5b7ff6b5a06951d1 Mon Sep 17 00:00:00 2001 From: audrasjb Date: Tue, 21 Jun 2022 13:18:10 +0000 Subject: [PATCH] Sitemaps: Remove duplicate sticky Posts from Sitemap Post Query. This changeset sets the `ignore_sticky_posts` parameter to `true` in the default arguments passed to `wp_sitemaps_posts_query_args`. Props RavanH, pbiron, swissspidy, audrasjb, SergeyBiryukov. Fixes #55633. Built from https://develop.svn.wordpress.org/trunk@53548 git-svn-id: http://core.svn.wordpress.org/trunk@53137 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/sitemaps/providers/class-wp-sitemaps-posts.php | 1 + wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/wp-includes/sitemaps/providers/class-wp-sitemaps-posts.php b/wp-includes/sitemaps/providers/class-wp-sitemaps-posts.php index 61dffdbd79..b9f2fd3185 100644 --- a/wp-includes/sitemaps/providers/class-wp-sitemaps-posts.php +++ b/wp-includes/sitemaps/providers/class-wp-sitemaps-posts.php @@ -219,6 +219,7 @@ class WP_Sitemaps_Posts extends WP_Sitemaps_Provider { 'no_found_rows' => true, 'update_post_term_cache' => false, 'update_post_meta_cache' => false, + 'ignore_sticky_posts' => true, // sticky posts will still appear, but they won't be moved to the front. ), $post_type ); diff --git a/wp-includes/version.php b/wp-includes/version.php index b3ab5495f3..8d7324d316 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.1-alpha-53547'; +$wp_version = '6.1-alpha-53548'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.