Commit 1c45d548c4 for wordpress.org

commit 1c45d548c4333a3c15b4bb565eb86298b3e512aa
Author: Pascal Birchler <pascal.birchler@gmail.com>
Date:   Mon Oct 14 08:52:12 2024 +0000

    Sitemaps: Add missing `_deprecated_function()` call to newly deprecated method.

    Follow-up to [59228].

    See #61931.
    Built from https://develop.svn.wordpress.org/trunk@59229


    git-svn-id: http://core.svn.wordpress.org/trunk@58621 1a063a9b-81f0-0310-95a4-ce76da25c4cd

diff --git a/wp-includes/sitemaps/class-wp-sitemaps.php b/wp-includes/sitemaps/class-wp-sitemaps.php
index a0fd5be624..d4bbe38c86 100644
--- a/wp-includes/sitemaps/class-wp-sitemaps.php
+++ b/wp-includes/sitemaps/class-wp-sitemaps.php
@@ -229,6 +229,8 @@ class WP_Sitemaps {
 	 * @return bool Bypass value.
 	 */
 	public function redirect_sitemapxml( $bypass, $query ) {
+		_deprecated_function( __FUNCTION__, '6.7.0' );
+
 		// If a plugin has already utilized the pre_handle_404 function, return without action to avoid conflicts.
 		if ( $bypass ) {
 			return $bypass;
diff --git a/wp-includes/version.php b/wp-includes/version.php
index e895dbef1f..db5747ab5a 100644
--- a/wp-includes/version.php
+++ b/wp-includes/version.php
@@ -16,7 +16,7 @@
  *
  * @global string $wp_version
  */
-$wp_version = '6.7-beta2-59228';
+$wp_version = '6.7-beta2-59229';

 /**
  * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.