wp/wp-includes/sitemaps/providers/class-wp-sitemaps-taxonomies.php
changeset 22 8c2e4d02f4ef
parent 21 48c4eec2b7e6
--- a/wp/wp-includes/sitemaps/providers/class-wp-sitemaps-taxonomies.php	Fri Sep 05 18:40:08 2025 +0200
+++ b/wp/wp-includes/sitemaps/providers/class-wp-sitemaps-taxonomies.php	Fri Sep 05 18:52:52 2025 +0200
@@ -171,7 +171,7 @@
 
 		$term_count = wp_count_terms( $this->get_taxonomies_query_args( $taxonomy ) );
 
-		return (int) ceil( $term_count / wp_sitemaps_get_max_urls( $this->object_type ) );
+		return (int) ceil( (int) $term_count / wp_sitemaps_get_max_urls( $this->object_type ) );
 	}
 
 	/**