From 293f895c675e3a0f52c750e9801371afc2b56c8c Mon Sep 17 00:00:00 2001 From: oandregal Date: Wed, 26 Apr 2023 14:27:24 +0000 Subject: [PATCH] Themes: remove unused parameter in query for `get_block_templates()`. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Remove the `theme` parameter from the query passed to `get_block_templates()`. It is not used or documented. This removal doesn't have any effect in the code, as the data is ignored anyway. Props draganescu, audrasjb, davidbaumwald, hellofromTonya. Fixes #57736. Built from https://develop.svn.wordpress.org/trunk@55686 git-svn-id: http://core.svn.wordpress.org/trunk@55198 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/block-template.php | 1 - wp-includes/version.php | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/wp-includes/block-template.php b/wp-includes/block-template.php index 10434dacb1..6a8b521f9d 100644 --- a/wp-includes/block-template.php +++ b/wp-includes/block-template.php @@ -145,7 +145,6 @@ function resolve_block_template( $template_type, $template_hierarchy, $fallback_ // Find all potential templates 'wp_template' post matching the hierarchy. $query = array( - 'theme' => get_stylesheet(), 'slug__in' => $slugs, ); $templates = get_block_templates( $query ); diff --git a/wp-includes/version.php b/wp-includes/version.php index e9171915a1..aeddac3bb6 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.3-alpha-55685'; +$wp_version = '6.3-alpha-55686'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.