[wp-trac] [WordPress Trac] #39053: Add function `wp_validate_integer`

WordPress Trac noreply at wordpress.org
Wed Apr 19 03:02:02 UTC 2017


#39053: Add function `wp_validate_integer`
----------------------------------------------------+------------------
 Reporter:  peterwilsoncc                           |       Owner:
     Type:  enhancement                             |      Status:  new
 Priority:  normal                                  |   Milestone:  4.8
Component:  General                                 |     Version:
 Severity:  normal                                  |  Resolution:
 Keywords:  has-patch has-unit-tests needs-refresh  |     Focuses:
----------------------------------------------------+------------------

Comment (by peterwilsoncc):

 Related: @johnjamesjacoby did some research around large numbers in
 [https://core.trac.wordpress.org/ticket/38203#comment:5 ticket 38203]

 I'm not overly worried about extra function calls as doing so is a micro-
 optimisation when WP could be optimised in more effective ways.

 Using this in a way that breaks backward compat is a bigger concern.

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


More information about the wp-trac mailing list