Skip to content

Commit c93c25e

Browse files
SergeyBiryukovspacedmonkey
authored andcommitted
Coding Standards: Remove unnecessary isset() check in get_calendar().
`$newrow` is defined right before the `for` loop, and the loop only toggles its value between `true` and `false`. Follow-up to [34463]. Props justlevine. See #63268. git-svn-id: https://develop.svn.wordpress.org/trunk@60331 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 6ded9b2 commit c93c25e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wp-includes/general-template.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2493,7 +2493,7 @@ function get_calendar( $args = array() ) {
24932493
$daysinmonth = (int) gmdate( 't', $unixmonth );
24942494

24952495
for ( $day = 1; $day <= $daysinmonth; ++$day ) {
2496-
if ( isset( $newrow ) && $newrow ) {
2496+
if ( $newrow ) {
24972497
$calendar_output .= "\n\t</tr>\n\t<tr>\n\t\t";
24982498
}
24992499

0 commit comments

Comments
 (0)