[wp-trac] [WordPress Trac] #39053: Add function `wp_validate_integer`
WordPress Trac
noreply at wordpress.org
Sun Dec 4 17:08:12 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 | Keywords: has-patch has-unit-tests
Focuses: |
---------------------------+--------------------------------------
WordPress validates integers in a number of locations, each time using
specific code:
* `WP_Post::get_instance()`
* `*_metadata_by_mid()`
As `filter_var` is not available in all installations, let's add an
equivalent: `wp_validate_integer()`.
Patch incoming.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39053>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list