[wp-trac] [WordPress Trac] #64913: Code Quality: Replace is_integer() with is_int() for consistency

WordPress Trac noreply at wordpress.org
Sun Mar 29 22:30:12 UTC 2026


#64913: Code Quality: Replace is_integer() with is_int() for consistency
--------------------------+-------------------------------
 Reporter:  Soean         |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  7.1
Component:  General       |     Version:
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:  coding-standards
--------------------------+-------------------------------

Comment (by SergeyBiryukov):

 In [changeset:"62175" 62175]:
 {{{
 #!CommitTicketReference repository="" revision="62175"
 Code Quality: Replace `is_integer()` with `is_int()` for consistency.

 [https://www.php.net/manual/en/function.is-integer.php is_integer()] is an
 alias for [https://www.php.net/manual/en/function.is-int.php is_int()].
 While they function identically, the WordPress Coding Standards and modern
 PHP practices generally lean towards using the official function name
 rather than its alias to maintain consistency across the codebase.

 Props Soean, westonruter, SergeyBiryukov.
 See #64913.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/64913#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list