diff --git a/src/wp-includes/sitemaps/class-wp-sitemaps.php b/src/wp-includes/sitemaps/class-wp-sitemaps.php index a0fd5be6242e8..d4bbe38c86b11 100644 --- a/src/wp-includes/sitemaps/class-wp-sitemaps.php +++ b/src/wp-includes/sitemaps/class-wp-sitemaps.php @@ -229,6 +229,8 @@ public function render_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;