Changeset 58923 for trunk/src/wp-includes/functions.php
- Timestamp:
- 08/22/2024 11:25:17 PM (7 weeks ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/functions.php
r58849 r58923 74 74 // Don't use non-GMT timestamp, unless you know the difference and really need to. 75 75 if ( 'timestamp' === $type || 'U' === $type ) { 76 return $gmt ? time() : time() + (int) ( get_option( 'gmt_offset' ) * HOUR_IN_SECONDS );76 return $gmt ? time() : time() + (int) ( (float) get_option( 'gmt_offset' ) * HOUR_IN_SECONDS ); 77 77 } 78 78
Note: See TracChangeset
for help on using the changeset viewer.