Changeset 48883 for branches/5.5/src/wp-includes/rest-api.php
- Timestamp:
- 08/27/2020 02:43:40 PM (6 years ago)
- Location:
- branches/5.5
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/wp-includes/rest-api.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/5.5
-
branches/5.5/src/wp-includes/rest-api.php
r48828 r48883 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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)