Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #56394, comment 2


Ignore:
Timestamp:
08/16/2022 10:01:19 PM (2 years ago)
Author:
costdev
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #56394, comment 2

    initial v1  
    11Is this the intended behaviour?
    22
    3 [https://developer.wordpress.org/reference/functions/get_page_template/ get_page_template()] returns from [https://developer.wordpress.org/reference/functions/get_query_template/ get_query_template()], which calls [https://developer.wordpress.org/reference/functions/locate_block_template/ locate_block_template()]. That suggests to me there ''should'' be a path in which a block template can be retrieved.
     3[https://developer.wordpress.org/reference/functions/get_page_template/ get_page_template()] returns from [https://developer.wordpress.org/reference/functions/get_query_template/ get_query_template()], which calls [https://developer.wordpress.org/reference/functions/locate_block_template/ locate_block_template()]. That suggests to me there ''should'' be a path in which a block template can be retrieved, and that this ''may'' be a `defect (bug)`.