Changeset 45424 for trunk/src/wp-includes/general-template.php
- Timestamp:
- 05/26/2019 12:11:37 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/general-template.php
r45406 r45424 2108 2108 2109 2109 $unixmonth = mktime( 0, 0, 0, $thismonth, 1, $thisyear ); 2110 $last_day = date( 't', $unixmonth );2110 $last_day = gmdate( 't', $unixmonth ); 2111 2111 2112 2112 // Get the next and previous month and year with at least one post … … 2134 2134 $calendar_caption, 2135 2135 $wp_locale->get_month( $thismonth ), 2136 date( 'Y', $unixmonth )2136 gmdate( 'Y', $unixmonth ) 2137 2137 ) . '</caption> 2138 2138 <thead> … … 2200 2200 2201 2201 // See how much we should pad in the beginning 2202 $pad = calendar_week_mod( date( 'w', $unixmonth ) - $week_begins );2202 $pad = calendar_week_mod( gmdate( 'w', $unixmonth ) - $week_begins ); 2203 2203 if ( 0 != $pad ) { 2204 2204 $calendar_output .= "\n\t\t" . '<td colspan="' . esc_attr( $pad ) . '" class="pad"> </td>'; … … 2206 2206 2207 2207 $newrow = false; 2208 $daysinmonth = (int) date( 't', $unixmonth );2208 $daysinmonth = (int) gmdate( 't', $unixmonth ); 2209 2209 2210 2210 for ( $day = 1; $day <= $daysinmonth; ++$day ) { … … 2224 2224 if ( in_array( $day, $daywithpost ) ) { 2225 2225 // any posts today? 2226 $date_format = date( _x( 'F j, Y', 'daily archives date format' ), strtotime( "{$thisyear}-{$thismonth}-{$day}" ) );2226 $date_format = gmdate( _x( 'F j, Y', 'daily archives date format' ), strtotime( "{$thisyear}-{$thismonth}-{$day}" ) ); 2227 2227 /* translators: Post calendar label. %s: Date */ 2228 2228 $label = sprintf( __( 'Posts published on %s' ), $date_format ); … … 2238 2238 $calendar_output .= '</td>'; 2239 2239 2240 if ( 6 == calendar_week_mod( date( 'w', mktime( 0, 0, 0, $thismonth, $day, $thisyear ) ) - $week_begins ) ) {2240 if ( 6 == calendar_week_mod( gmdate( 'w', mktime( 0, 0, 0, $thismonth, $day, $thisyear ) ) - $week_begins ) ) { 2241 2241 $newrow = true; 2242 2242 } 2243 2243 } 2244 2244 2245 $pad = 7 - calendar_week_mod( date( 'w', mktime( 0, 0, 0, $thismonth, $day, $thisyear ) ) - $week_begins );2245 $pad = 7 - calendar_week_mod( gmdate( 'w', mktime( 0, 0, 0, $thismonth, $day, $thisyear ) ) - $week_begins ); 2246 2246 if ( $pad != 0 && $pad != 7 ) { 2247 2247 $calendar_output .= "\n\t\t" . '<td class="pad" colspan="' . esc_attr( $pad ) . '"> </td>'; … … 4453 4453 break; 4454 4454 case 'export': 4455 $gen = '<!-- generator="WordPress/' . esc_attr( get_bloginfo_rss( 'version' ) ) . '" created="' . date( 'Y-m-d H:i' ) . '" -->';4455 $gen = '<!-- generator="WordPress/' . esc_attr( get_bloginfo_rss( 'version' ) ) . '" created="' . gmdate( 'Y-m-d H:i' ) . '" -->'; 4456 4456 break; 4457 4457 }
Note: See TracChangeset
for help on using the changeset viewer.