Changeset 49108 for trunk/src/wp-includes/formatting.php
- Timestamp:
- 10/08/2020 09:13:57 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/formatting.php
r48983 r49108 3569 3569 } else { 3570 3570 $sign = ( '+' === substr( $timezone, 0, 1 ) ) ? 1 : -1; 3571 $hours = intval( substr( $timezone, 1, 2 ));3572 $minutes = intval( substr( $timezone, 3, 4 )) / 60;3571 $hours = (int) substr( $timezone, 1, 2 ); 3572 $minutes = (int) substr( $timezone, 3, 4 ) / 60; 3573 3573 $offset = $sign * HOUR_IN_SECONDS * ( $hours + $minutes ); 3574 3574 } … … 3821 3821 3822 3822 /* translators: Maximum number of words used in a post excerpt. */ 3823 $excerpt_length = intval( _x( '55', 'excerpt_length' ));3823 $excerpt_length = (int) _x( '55', 'excerpt_length' ); 3824 3824 3825 3825 /** … … 4726 4726 $value = 1; 4727 4727 } else { 4728 $value = intval( $value );4728 $value = (int) $value; 4729 4729 } 4730 4730 break; … … 5068 5068 $fragment = $_fragment; 5069 5069 } else { 5070 $fragment = sprintf( $fragment, strval( $arg ));5070 $fragment = sprintf( $fragment, (string) $arg ); 5071 5071 } 5072 5072 }
Note: See TracChangeset
for help on using the changeset viewer.