From f3873d2f8aa9b70961e48286854e19f1a0e90c59 Mon Sep 17 00:00:00 2001 From: jorgefilipecosta Date: Mon, 8 Apr 2024 21:42:17 +0000 Subject: [PATCH] Coding Standards: Fix missing strict in_array on block-template-utils.php. Props swissspidy. Built from https://develop.svn.wordpress.org/trunk@57946 git-svn-id: http://core.svn.wordpress.org/trunk@57443 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/block-template-utils.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/block-template-utils.php b/wp-includes/block-template-utils.php index 6062b1ccbf..ea064eec41 100644 --- a/wp-includes/block-template-utils.php +++ b/wp-includes/block-template-utils.php @@ -1480,7 +1480,7 @@ function get_template_hierarchy( $slug, $is_custom = false, $template_prefix = ' list( $template_type ) = explode( '-', $slug ); } $valid_template_types = array( '404', 'archive', 'attachment', 'author', 'category', 'date', 'embed', 'frontpage', 'home', 'index', 'page', 'paged', 'privacypolicy', 'search', 'single', 'singular', 'tag', 'taxonomy' ); - if ( in_array( $template_type, $valid_template_types ) ) { + if ( in_array( $template_type, $valid_template_types, true ) ) { /** This filter is documented in wp-includes/template.php */ return apply_filters( "{$template_type}_template_hierarchy", $template_hierarchy ); } diff --git a/wp-includes/version.php b/wp-includes/version.php index cfdd998869..a8a80ca2f9 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.6-alpha-57945'; +$wp_version = '6.6-alpha-57946'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.