Changeset 49108 for trunk/src/wp-includes/general-template.php
- Timestamp:
- 10/08/2020 09:13:57 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/general-template.php
r49092 r49108 1340 1340 $my_year = substr( $m, 0, 4 ); 1341 1341 $my_month = $wp_locale->get_month( substr( $m, 4, 2 ) ); 1342 $my_day = intval( substr( $m, 6, 2 ));1342 $my_day = (int) substr( $m, 6, 2 ); 1343 1343 $title = $my_year . ( $my_month ? $t_sep . $my_month : '' ) . ( $my_day ? $t_sep . $my_day : '' ); 1344 1344 } … … 2224 2224 // Let's figure out when we are. 2225 2225 if ( ! empty( $monthnum ) && ! empty( $year ) ) { 2226 $thismonth = zeroise( intval( $monthnum ), 2 );2226 $thismonth = zeroise( (int) $monthnum, 2 ); 2227 2227 $thisyear = (int) $year; 2228 2228 } elseif ( ! empty( $w ) ) { … … 3150 3150 } 3151 3151 } elseif ( is_author() ) { 3152 $author_id = intval( get_query_var( 'author' ));3152 $author_id = (int) get_query_var( 'author' ); 3153 3153 3154 3154 $title = sprintf( $args['authortitle'], get_bloginfo( 'name' ), $args['separator'], get_the_author_meta( 'display_name', $author_id ) ); … … 3460 3460 if ( 'true' === get_user_option( 'rich_editing' ) || ! is_user_logged_in() ) { // Default to 'true' for logged out users. 3461 3461 if ( $is_safari ) { 3462 $wp_rich_edit = ! wp_is_mobile() || ( preg_match( '!AppleWebKit/(\d+)!', $_SERVER['HTTP_USER_AGENT'], $match ) && intval( $match[1] )>= 534 );3462 $wp_rich_edit = ! wp_is_mobile() || ( preg_match( '!AppleWebKit/(\d+)!', $_SERVER['HTTP_USER_AGENT'], $match ) && (int) $match[1] >= 534 ); 3463 3463 } elseif ( $is_IE ) { 3464 3464 $wp_rich_edit = ( strpos( $_SERVER['HTTP_USER_AGENT'], 'Trident/7.0;' ) !== false ); … … 4196 4196 // Get max pages and current page out of the current query, if available. 4197 4197 $total = isset( $wp_query->max_num_pages ) ? $wp_query->max_num_pages : 1; 4198 $current = get_query_var( 'paged' ) ? intval( get_query_var( 'paged' )) : 1;4198 $current = get_query_var( 'paged' ) ? (int) get_query_var( 'paged' ) : 1; 4199 4199 4200 4200 // Append the format placeholder to the base URL.
Note: See TracChangeset
for help on using the changeset viewer.