[wp-trac] [WordPress Trac] #39053: Add function `wp_validate_integer`
WordPress Trac
noreply at wordpress.org
Tue Dec 27 00:30:29 UTC 2016
#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 voldemortensen):
Replying to [comment:2 peterwilsoncc]:
> It might be preferable to return a WP_Error rather than false. I'll add
that as a specific test case.
> Mainly, I've included it to match the PHP signature.
Makes sense. I can agree with that.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39053#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list