diff -r 7b1b88e27a20 -r 48c4eec2b7e6 wp/wp-includes/sitemaps/class-wp-sitemaps-stylesheet.php --- a/wp/wp-includes/sitemaps/class-wp-sitemaps-stylesheet.php Thu Sep 29 08:06:27 2022 +0200 +++ b/wp/wp-includes/sitemaps/class-wp-sitemaps-stylesheet.php Fri Sep 05 18:40:08 2025 +0200 @@ -14,6 +14,7 @@ * * @since 5.5.0 */ +#[AllowDynamicProperties] class WP_Sitemaps_Stylesheet { /** * Renders the XSL stylesheet depending on whether it's the sitemap index or not. @@ -21,15 +22,15 @@ * @param string $type Stylesheet type. Either 'sitemap' or 'index'. */ public function render_stylesheet( $type ) { - header( 'Content-type: application/xml; charset=UTF-8' ); + header( 'Content-Type: application/xml; charset=UTF-8' ); if ( 'sitemap' === $type ) { - // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- All content escaped below. + // All content is escaped below. echo $this->get_sitemap_stylesheet(); } if ( 'index' === $type ) { - // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- All content escaped below. + // All content is escaped below. echo $this->get_sitemap_index_stylesheet(); }