Skip to content

Commit e61eff6

Browse files
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
1 parent bc346ec commit e61eff6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wp-includes/general-template.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2154,7 +2154,7 @@ function wp_get_archives( $args = '' ) {
21542154
if ( $results ) {
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;
21602160
$arc_week = get_weekstartend( $result->yyyymmdd, get_option( 'start_of_week' ) );

0 commit comments

Comments
 (0)