[wp-trac] [WordPress Trac] #56394: Add docs to clarify that `get_page_template()` doesn't work on block themes
WordPress Trac
noreply at wordpress.org
Thu Sep 15 12:42:49 UTC 2022
#56394: Add docs to clarify that `get_page_template()` doesn't work on block themes
--------------------------+-----------------------
Reporter: audrasjb | Owner: audrasjb
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 6.1
Component: Editor | Version: 5.9
Severity: normal | Resolution: fixed
Keywords: has-patch | Focuses: docs
--------------------------+-----------------------
Changes (by audrasjb):
* owner: (none) => audrasjb
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"54179" 54179]:
{{{
#!CommitTicketReference repository="" revision="54179"
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.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/56394#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list