From a9712661cad8e62581eb91a9ca8d12fe2d53b41d Mon Sep 17 00:00:00 2001 From: Aleksej Date: Tue, 15 Aug 2023 17:30:31 +0200 Subject: [PATCH] - including strict param in in_array --- _includes/markdown/PHP.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_includes/markdown/PHP.md b/_includes/markdown/PHP.md index bb5ff628..141ab7ef 100644 --- a/_includes/markdown/PHP.md +++ b/_includes/markdown/PHP.md @@ -63,7 +63,7 @@ Here are a few key points: if ( $foo_query->have_posts() ) : while ( $foo_query->have_posts() ) : $foo_query->the_post(); - if ( in_array( get_the_ID(), $posts_to_exclude ) ) { + if ( in_array( get_the_ID(), $posts_to_exclude, true ) ) { continue; } the_title();