From aa804df69247ac1cd6986966aa88825cd6d2924e Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Fri, 7 Feb 2025 15:08:23 +0000 Subject: [PATCH] Coding Standards: Use strict comparison in `wp_get_archives()`. Follow-up to [24], [114]. Props aristath, poena, afercia, SergeyBiryukov. See #62279. Built from https://develop.svn.wordpress.org/trunk@59774 git-svn-id: http://core.svn.wordpress.org/trunk@59116 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/general-template.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/general-template.php b/wp-includes/general-template.php index f0fa490ca9..46d023acb3 100644 --- a/wp-includes/general-template.php +++ b/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' ) ); diff --git a/wp-includes/version.php b/wp-includes/version.php index 64a36e394e..0d764b8216 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.8-alpha-59773'; +$wp_version = '6.8-alpha-59774'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.