[wp-trac] [WordPress Trac] #58878: Replace all instances of ctype_digit() with is_numeric()

WordPress Trac noreply at wordpress.org
Sat Jul 22 15:56:09 UTC 2023


#58878: Replace all instances of ctype_digit() with is_numeric()
----------------------------+-----------------------------
 Reporter:  rajinsharwar    |      Owner:  (none)
     Type:  defect (bug)    |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  Administration  |    Version:
 Severity:  normal          |   Keywords:
  Focuses:                  |
----------------------------+-----------------------------
 As per [PHP 8.1
 Deprecations](https://wiki.php.net/rfc/deprecations_php_8_1), they have
 deprecated ctype_*() function family to accept int parameters, especially
 the ctype_digit() function. So, proposing to use the is_numeric() function
 instead.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/58878>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list