Make WordPress Core


Ignore:
Timestamp:
09/15/2022 12:42:35 PM (2 years ago)
Author:
audrasjb
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/template.php

    r53560 r54179  
    438438 * Retrieve path of page template in current or parent template.
    439439 *
     440 * Note: For block themes, use locate_block_template function instead.
     441 *
    440442 * The hierarchy for this template looks like:
    441443 *
Note: See TracChangeset for help on using the changeset viewer.