Make WordPress Core


Ignore:
Timestamp:
06/21/2025 08:50:48 PM (10 months ago)
Author:
SergeyBiryukov
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/general-template.php

    r60233 r60331  
    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        }
Note: See TracChangeset for help on using the changeset viewer.