Changeset 48881 for trunk/src/wp-includes/rest-api.php
- Timestamp:
- 08/27/2020 02:55:39 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api.php
r48827 r48881 1316 1316 */ 1317 1317 function rest_is_integer( $maybe_integer ) { 1318 return round( floatval( $maybe_integer ) ) === floatval( $maybe_integer );1318 return is_numeric( $maybe_integer ) && round( floatval( $maybe_integer ) ) === floatval( $maybe_integer ); 1319 1319 } 1320 1320
Note: See TracChangeset
for help on using the changeset viewer.