[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
Wed Aug 17 02:07:37 UTC 2022


#56394: Add docs to clarify that `get_page_template()` doesn't work on block themes
--------------------------+---------------------
 Reporter:  audrasjb      |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  6.1
Component:  Editor        |     Version:  5.9
 Severity:  normal        |  Resolution:
 Keywords:  needs-patch   |     Focuses:  docs
--------------------------+---------------------

Comment (by costdev):

 Looking at
 [https://developer.wordpress.org/reference/functions/locate_block_template/#return
 the return for locate_block_template()], this may be a good reference for
 a docs change for `get_page_template()`.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/56394#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list