Merged in feature/81-dev-dev01 (pull request #5)
auto-patch 81-dev-dev01-2023-12-05T22_45_26 * auto-patch 81-dev-dev01-2023-12-05T22_45_26
This commit is contained in:
@@ -131,7 +131,6 @@ class WP_Sitemaps_Renderer {
|
||||
|
||||
if ( ! empty( $index_xml ) ) {
|
||||
// All output is escaped within get_sitemap_index_xml().
|
||||
// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
|
||||
echo $index_xml;
|
||||
}
|
||||
}
|
||||
@@ -196,7 +195,6 @@ class WP_Sitemaps_Renderer {
|
||||
|
||||
if ( ! empty( $sitemap_xml ) ) {
|
||||
// All output is escaped within get_sitemap_xml().
|
||||
// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
|
||||
echo $sitemap_xml;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -25,12 +25,12 @@ class WP_Sitemaps_Stylesheet {
|
||||
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();
|
||||
}
|
||||
|
||||
|
||||
@@ -60,7 +60,8 @@ class WP_Sitemaps_Taxonomies extends WP_Sitemaps_Provider {
|
||||
*/
|
||||
public function get_url_list( $page_num, $object_subtype = '' ) {
|
||||
// Restores the more descriptive, specific name for use within this method.
|
||||
$taxonomy = $object_subtype;
|
||||
$taxonomy = $object_subtype;
|
||||
|
||||
$supported_types = $this->get_object_subtypes();
|
||||
|
||||
// Bail early if the queried taxonomy is not supported.
|
||||
|
||||
@@ -136,8 +136,9 @@ class WP_Sitemaps_Users extends WP_Sitemaps_Provider {
|
||||
)
|
||||
);
|
||||
|
||||
// We're not supporting sitemaps for author pages for attachments.
|
||||
// We're not supporting sitemaps for author pages for attachments and pages.
|
||||
unset( $public_post_types['attachment'] );
|
||||
unset( $public_post_types['page'] );
|
||||
|
||||
/**
|
||||
* Filters the query arguments for authors with public posts.
|
||||
|
||||
Reference in New Issue
Block a user