Make WordPress Core

Changeset 59774


Ignore:
Timestamp:
02/07/2025 03:06:13 PM (4 weeks ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Use strict comparison in wp_get_archives().

Follow-up to [24], [114].

Props aristath, poena, afercia, SergeyBiryukov.
See #62279.

File:
1 edited

Legend:

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

    r59711 r59774  
    21552155            $after = $parsed_args['after'];
    21562156            foreach ( (array) $results as $result ) {
    2157                 if ( $result->week != $arc_w_last ) {
     2157                if ( $result->week !== $arc_w_last ) {
    21582158                    $arc_year       = $result->yr;
    21592159                    $arc_w_last     = $result->week;
Note: See TracChangeset for help on using the changeset viewer.