WordPress/wp-includes/sitemaps
Sergey Biryukov 869f9b1df5 Coding Standards: Cast `wp_count_terms()` result to `int` before using in `ceil()`.
This addresses two instances of the (numeric string) return value from `wp_count_terms()` being used directly in `ceil()`, which expects an `int|float`.

Affected methods:
* `WP_Sitemaps_Taxonomies::get_max_num_pages()`
* `wp_nav_menu_item_taxonomy_meta_box()`

Reference: [https://www.php.net/manual/en/function.ceil.php PHP Manual: ceil()].

Follow-up to [14248], [14291], [14569], [14943], [48072], [57648].

Props justlevine.
See #52217.
Built from https://develop.svn.wordpress.org/trunk@59462


git-svn-id: http://core.svn.wordpress.org/trunk@58848 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-11-26 21:17:25 +00:00
..
providers Coding Standards: Cast `wp_count_terms()` result to `int` before using in `ceil()`. 2024-11-26 21:17:25 +00:00
class-wp-sitemaps-index.php Code Modernization: Add `AllowDynamicProperties` attribute to all (parent) classes. 2022-09-12 15:47:14 +00:00
class-wp-sitemaps-provider.php Docs: Replace multiple single line comments with multi-line comments. 2023-07-10 23:19:23 +00:00
class-wp-sitemaps-registry.php Code Modernization: Add `AllowDynamicProperties` attribute to all (parent) classes. 2022-09-12 15:47:14 +00:00
class-wp-sitemaps-renderer.php Coding Standards: Remove redundant ignore annotations, take 4. 2023-10-01 00:22:27 +00:00
class-wp-sitemaps-stylesheet.php Coding Standards: Remove redundant ignore annotations, take 4. 2023-10-01 00:22:27 +00:00
class-wp-sitemaps.php Sitemaps: Add missing `_deprecated_function()` call to newly deprecated method. 2024-10-14 08:52:12 +00:00