--- a/wp/wp-includes/sitemaps/class-wp-sitemaps-provider.php Thu Sep 29 08:06:27 2022 +0200
+++ b/wp/wp-includes/sitemaps/class-wp-sitemaps-provider.php Fri Sep 05 18:40:08 2025 +0200
@@ -14,6 +14,7 @@
*
* @since 5.5.0
*/
+#[AllowDynamicProperties]
abstract class WP_Sitemaps_Provider {
/**
* Provider name.
@@ -68,8 +69,10 @@
$object_subtypes = $this->get_object_subtypes();
- // If there are no object subtypes, include a single sitemap for the
- // entire object type.
+ /*
+ * If there are no object subtypes, include a single sitemap for the
+ * entire object type.
+ */
if ( empty( $object_subtypes ) ) {
$sitemap_data[] = array(
'name' => '',
@@ -106,7 +109,7 @@
$sitemap_types = $this->get_sitemap_type_data();
foreach ( $sitemap_types as $type ) {
- for ( $page = 1; $page <= $type['pages']; $page ++ ) {
+ for ( $page = 1; $page <= $type['pages']; $page++ ) {
$sitemap_entry = array(
'loc' => $this->get_sitemap_url( $type['name'], $page ),
);