Changeset 44809 for trunk/src/wp-includes/general-template.php
- Timestamp:
- 03/07/2019 09:11:37 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/general-template.php
r44725 r44809 2006 2006 // week_begins = 0 stands for Sunday 2007 2007 $week_begins = (int) get_option( 'start_of_week' ); 2008 $ts = current_time( 'timestamp' );2009 2008 2010 2009 // Let's figure out when we are … … 2026 2025 } 2027 2026 } else { 2028 $thisyear = gmdate( 'Y', $ts);2029 $thismonth = gmdate( 'm', $ts);2027 $thisyear = current_time( 'Y' ); 2028 $thismonth = current_time( 'm' ); 2030 2029 } 2031 2030 … … 2137 2136 $newrow = false; 2138 2137 2139 if ( $day == gmdate( 'j', $ts) &&2140 $thismonth == gmdate( 'm', $ts) &&2141 $thisyear == gmdate( 'Y', $ts) ) {2138 if ( $day == current_time( 'j' ) && 2139 $thismonth == current_time( 'm' ) && 2140 $thisyear == current_time( 'Y' ) ) { 2142 2141 $calendar_output .= '<td id="today">'; 2143 2142 } else {
Note: See TracChangeset
for help on using the changeset viewer.