From e61eff602fb032bc7e3de1f8df3024c346b24393 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Fri, 7 Feb 2025 15:06:13 +0000 Subject: [PATCH] Coding Standards: Use strict comparison in `wp_get_archives()`. Follow-up to [24], [114]. Props aristath, poena, afercia, SergeyBiryukov. See #62279. git-svn-id: https://develop.svn.wordpress.org/trunk@59774 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/general-template.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/general-template.php b/src/wp-includes/general-template.php index f0fa490ca90c2..46d023acb3afd 100644 --- a/src/wp-includes/general-template.php +++ b/src/wp-includes/general-template.php @@ -2154,7 +2154,7 @@ function wp_get_archives( $args = '' ) { if ( $results ) { $after = $parsed_args['after']; foreach ( (array) $results as $result ) { - if ( $result->week != $arc_w_last ) { + if ( $result->week !== $arc_w_last ) { $arc_year = $result->yr; $arc_w_last = $result->week; $arc_week = get_weekstartend( $result->yyyymmdd, get_option( 'start_of_week' ) );