close
Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/wp-includes/general-template.php
Original file line number Diff line number Diff line change
Expand Up @@ -2305,8 +2305,9 @@
$thismonth = current_time( 'm' );
}

$unixmonth = mktime( 0, 0, 0, $thismonth, 1, $thisyear );
$last_day = gmdate( 't', $unixmonth );
$current_day = current_time('j');
$unixmonth = mktime( 0, 0, 0, $thismonth, $current_day, $thisyear );
$last_day = gmdate( 't', $unixmonth );

// Get the next and previous month and year with at least one post.
$previous = $wpdb->get_row(
Expand Down Expand Up @@ -2395,7 +2396,7 @@
$calendar_output .= '<td>';
}

if ( in_array( $day, $daywithpost, true ) ) {

Check failure on line 2399 in src/wp-includes/general-template.php

View workflow job for this annotation

Image GitHub Actions / PHP coding standards / Run coding standards checks

Expected 1 spaces before closing parenthesis; 0 found

Check failure on line 2399 in src/wp-includes/general-template.php

View workflow job for this annotation

Image GitHub Actions / PHP coding standards / Run coding standards checks

Expected 1 spaces after opening parenthesis; 0 found
// Any posts today?
$date_format = gmdate( _x( 'F j, Y', 'daily archives date format' ), strtotime( "{$thisyear}-{$thismonth}-{$day}" ) );
/* translators: Post calendar label. %s: Date. */
Expand Down
Loading