- Timestamp:
- 10/08/2020 09:13:57 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/customize/class-wp-customize-date-time-control.php
r48067 r49108 82 82 $data = parent::json(); 83 83 84 $data['maxYear'] = intval( $this->max_year );85 $data['minYear'] = intval( $this->min_year );84 $data['maxYear'] = (int) $this->max_year; 85 $data['minYear'] = (int) $this->min_year; 86 86 $data['allowPastDate'] = (bool) $this->allow_past_date; 87 87 $data['twelveHourFormat'] = (bool) $this->twelve_hour_format; … … 246 246 } 247 247 } else { 248 $formatted_gmt_offset = $this->format_gmt_offset( intval( get_option( 'gmt_offset', 0 )) );248 $formatted_gmt_offset = $this->format_gmt_offset( (int) get_option( 'gmt_offset', 0 ) ); 249 249 250 250 $timezone_info['description'] = sprintf(
Note: See TracChangeset
for help on using the changeset viewer.