From 199454f6aea2e750171c4236edd2a6570b733169 Mon Sep 17 00:00:00 2001 From: audrasjb Date: Thu, 15 Sep 2022 12:44:09 +0000 Subject: [PATCH] Docs: Clarify that `get_page_template()` doesn't work on block themes. When working on a block theme, `locate_block_template()` should be used instead of `get_page_template()`. This changeset updates the docblock of this function accordingly. Props audrasjb, costdev, robinwpdeveloper. Fixes #56394. See #55646. Built from https://develop.svn.wordpress.org/trunk@54179 git-svn-id: http://core.svn.wordpress.org/trunk@53738 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/template.php | 2 ++ wp-includes/version.php | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/wp-includes/template.php b/wp-includes/template.php index 60752349c0..741299b653 100644 --- a/wp-includes/template.php +++ b/wp-includes/template.php @@ -437,6 +437,8 @@ function get_privacy_policy_template() { /** * Retrieve path of page template in current or parent template. * + * Note: For block themes, use locate_block_template function instead. + * * The hierarchy for this template looks like: * * 1. {Page Template}.php diff --git a/wp-includes/version.php b/wp-includes/version.php index 65e1179954..73591b0286 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.1-alpha-54178'; +$wp_version = '6.1-alpha-54179'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.