Changeset 59471 for trunk/src/wp-includes/functions.php
- Timestamp:
- 11/28/2024 10:50:21 PM (2 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/functions.php
r59461 r59471 595 595 596 596 // The day of the week from the timestamp. 597 $weekday = gmdate( 'w', $day );597 $weekday = (int) gmdate( 'w', $day ); 598 598 599 599 if ( ! is_numeric( $start_of_week ) ) { 600 $start_of_week = get_option( 'start_of_week' );600 $start_of_week = (int) get_option( 'start_of_week' ); 601 601 } 602 602 … … 610 610 // $start + 1 week - 1 second. 611 611 $end = $start + WEEK_IN_SECONDS - 1; 612 612 613 return compact( 'start', 'end' ); 613 614 }
Note: See TracChangeset
for help on using the changeset viewer.