Make WordPress Core

Changeset 59953


Ignore:
Timestamp:
03/08/2025 12:49:25 PM (18 months ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Correct conditional formatting in get_calendar().

Follow-up to [59947].

See #62279.

File:
1 edited

Legend:

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

    r59952 r59953  
    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.
    2314          *
    2315          * The global values contain data generated by the URL querystring variables.
     2313         * HTML regardless of this function's need to echo or return the output.
     2314         *
     2315         * The global values contain data generated by the URL query string variables.
    23162316         */
    23172317        $cache_args = $args;
     
    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 {
Note: See TracChangeset for help on using the changeset viewer.