Changeset 49108 for trunk/src/wp-includes/link-template.php
- Timestamp:
- 10/08/2020 09:13:57 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/link-template.php
r49067 r49108 516 516 if ( ! empty( $monthlink ) ) { 517 517 $monthlink = str_replace( '%year%', $year, $monthlink ); 518 $monthlink = str_replace( '%monthnum%', zeroise( intval( $month ), 2 ), $monthlink );518 $monthlink = str_replace( '%monthnum%', zeroise( (int) $month, 2 ), $monthlink ); 519 519 $monthlink = home_url( user_trailingslashit( $monthlink, 'month' ) ); 520 520 } else { … … 561 561 if ( ! empty( $daylink ) ) { 562 562 $daylink = str_replace( '%year%', $year, $daylink ); 563 $daylink = str_replace( '%monthnum%', zeroise( intval( $month ), 2 ), $daylink );564 $daylink = str_replace( '%day%', zeroise( intval( $day ), 2 ), $daylink );563 $daylink = str_replace( '%monthnum%', zeroise( (int) $month, 2 ), $daylink ); 564 $daylink = str_replace( '%day%', zeroise( (int) $day, 2 ), $daylink ); 565 565 $daylink = home_url( user_trailingslashit( $daylink, 'day' ) ); 566 566 } else { … … 2321 2321 $paged = 1; 2322 2322 } 2323 $nextpage = intval( $paged )+ 1;2323 $nextpage = (int) $paged + 1; 2324 2324 if ( ! $max_page || $max_page >= $nextpage ) { 2325 2325 return get_pagenum_link( $nextpage ); … … 2370 2370 } 2371 2371 2372 $nextpage = intval( $paged )+ 1;2372 $nextpage = (int) $paged + 1; 2373 2373 2374 2374 if ( null === $label ) { … … 2419 2419 2420 2420 if ( ! is_single() ) { 2421 $nextpage = intval( $paged )- 1;2421 $nextpage = (int) $paged - 1; 2422 2422 if ( $nextpage < 1 ) { 2423 2423 $nextpage = 1; … … 2892 2892 } 2893 2893 2894 $nextpage = intval( $page )+ 1;2894 $nextpage = (int) $page + 1; 2895 2895 2896 2896 if ( empty( $max_page ) ) { … … 2947 2947 $page = get_query_var( 'cpage' ); 2948 2948 2949 if ( intval( $page )<= 1 ) {2949 if ( (int) $page <= 1 ) { 2950 2950 return; 2951 2951 } 2952 2952 2953 $prevpage = intval( $page )- 1;2953 $prevpage = (int) $page - 1; 2954 2954 2955 2955 if ( empty( $label ) ) {
Note: See TracChangeset
for help on using the changeset viewer.