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

WordPress Trac noreply at wordpress.org
Sat Dec 24 04:00:35 UTC 2016


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

Comment (by voldemortensen):

 👍 I like this.

 Only a couple nitpicks, there's one misspelling `fiter_var`, and some doc
 block aligning issues.

 My real question though, is what is the need for the `default` parameter?
 I can't see a reason someone would want anything but false if the thing
 being checked isn't an integer.

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


More information about the wp-trac mailing list