Changeset 59471 for trunk/src/wp-includes/general-template.php
- Timestamp:
- 11/28/2024 10:50:21 PM (3 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/general-template.php
r59419 r59471 2374 2374 2375 2375 // See how much we should pad in the beginning. 2376 $pad = calendar_week_mod( gmdate( 'w', $unixmonth ) - $week_begins );2376 $pad = calendar_week_mod( (int) gmdate( 'w', $unixmonth ) - $week_begins ); 2377 2377 if ( 0 != $pad ) { 2378 2378 $calendar_output .= "\n\t\t" . '<td colspan="' . esc_attr( $pad ) . '" class="pad"> </td>'; … … 2413 2413 $calendar_output .= '</td>'; 2414 2414 2415 if ( 6 == calendar_week_mod( gmdate( 'w', mktime( 0, 0, 0, $thismonth, $day, $thisyear ) ) - $week_begins ) ) {2415 if ( 6 == calendar_week_mod( (int) gmdate( 'w', mktime( 0, 0, 0, $thismonth, $day, $thisyear ) ) - $week_begins ) ) { 2416 2416 $newrow = true; 2417 2417 } 2418 2418 } 2419 2419 2420 $pad = 7 - calendar_week_mod( gmdate( 'w', mktime( 0, 0, 0, $thismonth, $day, $thisyear ) ) - $week_begins );2420 $pad = 7 - calendar_week_mod( (int) gmdate( 'w', mktime( 0, 0, 0, $thismonth, $day, $thisyear ) ) - $week_begins ); 2421 2421 if ( 0 != $pad && 7 != $pad ) { 2422 2422 $calendar_output .= "\n\t\t" . '<td class="pad" colspan="' . esc_attr( $pad ) . '"> </td>';
Note: See TracChangeset
for help on using the changeset viewer.