Skip to content

Commit 903b1fe

Browse files
Coding Standards: Correct conditional formatting in get_calendar().
Follow-up to [59947]. See #62279. git-svn-id: https://develop.svn.wordpress.org/trunk@59953 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 17b08bf commit 903b1fe

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

src/wp-includes/general-template.php

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2310,9 +2310,9 @@ function get_calendar( $args = array() ) {
23102310
* from generating a different key from the same values in the reverse order.
23112311
*
23122312
* `display` is excluded from the cache key as the cache contains the same
2313-
* HTML regardless of this functions need to echo or return the output.
2313+
* HTML regardless of this function's need to echo or return the output.
23142314
*
2315-
* The global values contain data generated by the URL querystring variables.
2315+
* The global values contain data generated by the URL query string variables.
23162316
*/
23172317
$cache_args = $args;
23182318
unset( $cache_args['display'] );
@@ -2497,11 +2497,13 @@ function get_calendar( $args = array() ) {
24972497
if ( isset( $newrow ) && $newrow ) {
24982498
$calendar_output .= "\n\t</tr>\n\t<tr>\n\t\t";
24992499
}
2500+
25002501
$newrow = false;
25012502

2502-
if ( (int) current_time( 'j' ) === $day &&
2503-
(int) current_time( 'm' ) === $thismonth &&
2504-
(int) current_time( 'Y' ) === $thisyear ) {
2503+
if ( (int) current_time( 'j' ) === $day
2504+
&& (int) current_time( 'm' ) === $thismonth
2505+
&& (int) current_time( 'Y' ) === $thisyear
2506+
) {
25052507
$calendar_output .= '<td id="today">';
25062508
} else {
25072509
$calendar_output .= '<td>';

0 commit comments

Comments
 (0)