Make WordPress Core

Changeset 59462


Ignore:
Timestamp:
11/26/2024 09:15:31 PM (5 days ago)
Author:
SergeyBiryukov
Message:

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: PHP Manual: ceil().

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

Props justlevine.
See #52217.

Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
Note: See TracChangeset for help on using the changeset viewer.